You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Auto-update no longer fails with `os error 740`** on non-admin sessions: UniCreate now restarts itself as administrator automatically before launching the updater. One-click update again works end to end.
10
+
-**All updater error messages translated to English** (previously some surfaced the localized Windows error text, e.g. "L'opération demandée nécessite une élévation").
11
+
12
+
## Changes
13
+
14
+
### 1) Fix — `ERROR_ELEVATION_REQUIRED` (740) on auto-update
15
+
16
+
- Windows installer-detection heuristic forces UAC elevation for any `.exe` whose name contains `updater` / `setup` / `install`. Launching `UniCreate-Updater.exe` from a non-admin process therefore fails with OS error 740, which the previous build surfaced as a cryptic toast.
17
+
- UniCreate now checks `is_running_as_admin` before triggering the updater. When the app is not elevated, it persists the pending download URL + filename in `localStorage` (`unicreate-pending-update`), calls a new `restart_as_admin` Tauri command, and resumes the install automatically once the app reboots with elevated privileges. A single UAC prompt now suffices — no need to manually relaunch the app as admin.
18
+
19
+
Impacted files:
20
+
-`src-tauri/Cargo.toml` (added `is_elevated` dependency on Windows)
21
+
-`src-tauri/src/lib.rs` (new `is_running_as_admin` and `restart_as_admin` Tauri commands)
22
+
-`src-tauri/src/github.rs` (`start_silent_update` now translates `raw_os_error() == 740` into a clear English message)
23
+
-`src/App.tsx` (`openUpdateAction` checks admin first + resumes pending update on next boot)
24
+
25
+
### 2) Updater error messages are now consistently in English
26
+
27
+
- The pre-existing English strings stay unchanged.
28
+
- The 740 case used to fall through to `std::io::Error::Display`, which Windows localizes (French users saw "L'opération demandée nécessite une élévation"). It now returns: *"Update requires administrator privileges. Please restart UniCreate as administrator and try again."*
0 commit comments