- 1 year ago
InnoSetup uninstaller UAC from Apps&Features
To create an uninstaller for your application in Inno Setup that allows users to uninstall the application from the Apps & Features section of Windows Settings without triggering the User Account Control (UAC) prompt, you can follow these steps:
Open your Inno Setup script (
.iss
file) in a text editor.Locate the
[Setup]
section in the script.Add the
PrivilegesRequired
directive and set its value tolowest
. This directive ensures that the uninstaller runs with the minimum privileges required, bypassing the UAC prompt for standard users.Example:
csharp[Setup]
PrivilegesRequired=lowest
Save the changes to your Inno Setup script.
Build your installer using Inno Setup.
When users run the uninstaller created with these settings, it will uninstall the application without triggering the UAC prompt for standard users. However, keep in mind that administrative privileges will still be required to install the application initially.
Note: The ability to bypass UAC for uninstallation only applies to standard users. If the user account executing the uninstaller is an administrator, the UAC prompt may still appear.