diff options
author | Remco Burema <r.burema@ultimaker.com> | 2022-07-08 16:59:04 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2022-07-08 16:59:04 +0300 |
commit | 562184166e30e608ea3e151079bc987d27ee7f5f (patch) | |
tree | a2ae2cf43f53ec697e24e7a516ea11806424683f /packaging | |
parent | 8750c218db0a0da2705718d8d6614c34f71df31c (diff) |
Make it possible for another user to uninstall.
Users other than the original installer, can't easily uninstall, even if they have the rights. This should be possible. Users without the rights can still try to start the program, but would then need permission and get kicked out. 'HKCU' is a shorthand referring _only_ to the current user. 'HKCR' is a shorthand that refers _both_ to the current user _and_ the local machine. Most (except one) of the registry keys in the old setup (with CPack) where 'installed' to the latter, only one, which doesn't even seem to exist anymore in the new setup, refrered to the former. In short: This commit should restore the ability to uninstall Cura from any sufficiently elevated account to do such action, as was done by the 'old' buildsystem.
should fix Ultimaker/Cura#12582
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/NSIS/Ultimaker-Cura.nsi.jinja | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/NSIS/Ultimaker-Cura.nsi.jinja b/packaging/NSIS/Ultimaker-Cura.nsi.jinja index fc7db794d9..7a4049e8bc 100644 --- a/packaging/NSIS/Ultimaker-Cura.nsi.jinja +++ b/packaging/NSIS/Ultimaker-Cura.nsi.jinja @@ -11,7 +11,7 @@ !define INSTALLER_NAME "{{ destination }}" !define MAIN_APP_EXE "{{ main_app }}" !define INSTALL_TYPE "SetShellVarContext all" -!define REG_ROOT "HKCU" +!define REG_ROOT "HKCR" !define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${MAIN_APP_EXE}" !define UNINSTALL_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}" |