Files
tauri-plugins-workspace/plugins
Lucas Fernandes Nogueira 21ebe1f531 fix(updater): derive the Windows installer launch error from ShellExecuteW (#3692)
* fix(updater): derive the Windows installer launch error from ShellExecuteW

A failed `ShellExecuteW` was reported with `std::io::Error::last_os_error()`,
but `ShellExecuteW` reports failures through its return value (`SE_ERR_*`),
not reliably through `GetLastError`, so the message could be meaningless. The
return value is now mapped to an error (the codes shared with Win32 errors,
like `SE_ERR_ACCESSDENIED` when the UAC prompt is declined, keep their OS
message).

Running `on_before_exit` only once the installer launched changes when a
public hook runs and is left for v3.

Compile-checked only (clippy for x86_64-pc-windows-msvc).

plugins/updater/src/updater.rs

* use constants
2026-10-11 16:12:34 -03:00
..
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-09-26 17:21:49 -03:00
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-09-26 17:21:49 -03:00