Reputation: 11389
I'm writing some values to HKLM during the installation of my application.
I'm using the PrivilegesRequired=admin flag in my installer, so during the installation, writing to the registry works fine.
However, when I un-install my application, Inno Setup doesn't request admin privileges, so my call to RegDeleteKeyIncludingSubkeys fails.
I would like to ask if it's possible to make it so that Inno Setup requires admin privileges at un-installation as well.
Thank you very much.
Edit: I've read that the uninstaller should contain this information, but for me, it doesn't. I don't even remember how I created the uninstaller...
Upvotes: 0
Views: 267
Reputation: 11389
I found the problem myself:
I forgot to sign the uninstaller. The Windows Programs & Features uninstaller requires that uninstaller have to be signed.
Once I signed the uninstaller, everything would work as expected.
Upvotes: 0