mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-02 19:31:56 +00:00
An installer built before this script registered its Apps & features entry in the 32-bit registry view: CPack's NSIS installer is a 32-bit program and its template never called SetRegView. The tree it recorded is the same C:\Program Files\OrcaSlicer this script installs into, so an upgrade leaves both entries side by side in the installed-apps list. The uninstaller already removes that key when it names the tree being removed. The install section did not. It now reads the 32-bit view the same way and deletes the key only when it names $INSTDIR, so another tree's record is left alone and the entry this run just wrote in the 64-bit view is untouched. The delete runs inside the elevated block, because HKLM is only written there. An in-app update still cannot do it: the stale entry goes the next time the installer runs elevated, or on uninstall.