Skip to content
New issue

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

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

Already on GitHub? # to your account

Request - Add ability to specify per-machine or per-user installation via command line #6258

Open
DanGough opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope.

Comments

@DanGough
Copy link

DanGough commented Feb 25, 2025

Justification
Currently the installer detects if running elevated and installs for all users if so. This presents 2 issues:

  • When installing per-machine, the Uninstall reg key is still written to HKCU, so other users cannot see it in add/remove programs

  • When trying to deploy this via Intune/ConfigMgr as a per-user app, if the user is an admin it will automatically run with highest available privileges. So you will end up with per-user installs on some devices and per-machine installs on other devices, depending on if the user had admin rights or not. IT admins need control over the installation context.

Description
I would like to be able to force override the installation context by specifying /ALLUSERS or /CURRENTUSER on the command line. I have seen many other InnoSetup installers do this (e.g. https://github.com/cthoeing/passwordtech).

Additionally, if installing for all users, the uninstall key should be written to HKLM rather than HKCU.

@DanGough DanGough added the enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. label Feb 25, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope.
Projects
None yet
Development

No branches or pull requests

1 participant