When Inno Setup configured with PrivilegesRequired=admin, it stores uninstall registry key in HKEY_LOCAL_MACHINE.
How can i force to store uninstall registry key in HKEY_CURRENT_USER?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As your title said, you need to use
PrivilegesRequired=lowest. Anything other than that, and the “local user” may not be what you expect.If the setup needs admin permissions to remove the old setup, you can use
ShellExec, making sure that the application you’re calling as the admin manifest, or you pass the “runas” verb.