Search code examples
windowsinstallationinno-setupelevated-privilegesshortcut-file

Show/Add Administrator overlay icon to Inno Setup installer?


I wanna know how to add Administrator overlay icon to my Inno Setup installers.

Like on this image:

enter image description here


Solution

  • I do not think this is possible.

    The icon is added for applications that have requireAdministrator (or maybe highestAvailable) execution level set in their manifests:

    <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
    

    Inno Setup installers do not have that set. They elevate themselves internally, instead of relying on system to do that for them.


    Interestingly, there is UpdateManifestRequestedExecutionLevel function in Inno Setup code that does this, but it's never called.