Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible for another user to uninstall. #12709

Merged
merged 2 commits into from
Jul 21, 2022

Conversation

rburema
Copy link
Member

@rburema rburema commented Jul 8, 2022

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 #12582

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 #12582
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Unit Test Results

14 882 tests  ±0   14 880 ✔️ ±0   54s ⏱️ +15s
         1 suites ±0            2 💤 ±0 
         1 files   ±0            0 ±0 

Results for commit cee219f. ± Comparison against base commit dc00625.

♻️ This comment has been updated with latest results.

@rburema rburema changed the base branch from 5.1 to main July 19, 2022 13:50
@rburema
Copy link
Member Author

rburema commented Jul 21, 2022

@jellespijker So I don't forget to ask... This is still a problem in 5.1, despite changing other stuff, at least according this comment: #12582 (comment)

@jellespijker
Copy link
Member

@rburema will check today.

# Conflicts:
#	packaging/NSIS/Ultimaker-Cura.nsi.jinja
@jellespijker jellespijker merged commit 9488092 into main Jul 21, 2022
@rburema rburema deleted the GH-12582_fix_uninstall_by_other branch September 22, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uninstall key is written to user profile (should be written to hklm)
3 participants