- 1 year ago
Add Administrator/UAC icon/sign to Inno Setup installer icon
Comment
1 / 1
To add an Administrator/UAC (User Account Control) icon or sign to the Inno Setup installer, you can follow these steps:
Prepare the Administrator/UAC Icon:
- Design or obtain an appropriate icon or image that represents the Administrator/UAC.
- Ensure the icon or image is in a format supported by Inno Setup, such as ICO or BMP.
Add the Icon to the Installer:
- Open your Inno Setup script file (.iss) in a text editor.
- Locate the
[Setup]
section of the script.
Define the Administrator/UAC Icon:
- Add the
PrivilegesRequiredOverridesAllowed
directive to enable the use of an administrator/UAC icon. - Set its value to
admin
, indicating that administrative privileges are required. - For example:csharp
[Setup]
PrivilegesRequiredOverridesAllowed=admin
- Add the
Set the Administrator/UAC Icon:
- Add the
WizardImageFile
directive to specify the path to the icon or image file. - Set its value to the file path of the Administrator/UAC icon.
- For example:mathematica
[Setup]
WizardImageFile=C:\Path\To\AdminIcon.ico
- Add the
Compile and Test:
- Save the changes to the Inno Setup script file.
- Compile your Inno Setup script to generate the installer executable.
- Run the installer and observe the icon displayed during the installation process.
By following these steps, you can add an Administrator/UAC icon or sign to your Inno Setup installer, which helps indicate that administrative privileges are required to run the installer.