Files
OrcaSlicer/scripts
Lam Wei Lun d9692bcf30 Install updates without a dialog, from a per-user installer
The background check no longer opens the update dialog. What to do with a
candidate is a pure decision now (update_action), so it can be tested: an
automatic check prefetches, a check the user started keeps its dialog and
installs at once, and a skipped version stays quiet unless the user asked.

The helper downloads while the application runs and exits; a second run at
quit installs from the verified file. Prefetch therefore takes no lock and
installs nothing, so it cannot race the run that follows it, and the install
that runs after a quit does not start the application again. A failure leaves
update_failed.txt, which the next start shows as a notification: an update
that asks nothing has no other way to report itself. The artifact a prefetch
left behind is now kept by prepare_download_dir instead of being swept and
downloaded again.

The Windows installer is no longer CPack's. CPack hardcodes
RequestExecutionLevel admin and installs to Program Files, so every update
needed a UAC prompt. packaging/windows/orca-slicer.nsi requests the user's
own level and picks the scope at start: a machine-wide install recorded in
the HKLM uninstall key is replaced under Program Files by the elevated helper
it already runs as, and a fresh install goes to LOCALAPPDATA, where an update
needs no elevation at all. The helper now decides that elevation by probing
the install root, and only asks for it when the tree is not writable. Both
registry views are checked, because installers built before this were 32-bit.

A failed install now sets an error level: a silent update reads the exit code,
and an Abort without one looked like success.
2026-11-13 17:15:38 +08:00
..
2025-08-22 20:02:26 +08:00
2025-09-20 09:12:31 +08:00