Force inno setup to store data in HKCU with PrivilegesRequired = below

When Inno Setup is configured with PrivilegesRequired = admin, it stores the registry key for deletion in HKEY_LOCAL_MACHINE.

How can I force the delete registry key to be deleted from HKEY_CURRENT_USER?

+3
inno-setup


source to share


1 answer


As your name says, you need to use PrivilegesRequired=lowest

. Everything except this, and the "local user" may not be what you expect.



If the installation requires admin permissions to remove the old setting, you can use ShellExec

by making sure the application you are calling as admin manifest or passing the "runas" verb.

+3


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics