mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-27 07:39:40 -05:00
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.