Op 16 dec 2023 om 20:07 heeft AndrewP <apeck...@gmail.com> het volgende geschreven:
If I have PrivilegesRequired=admin set in the installer script, inno creates an installer .exe that requests elevation. However, if I examine the manifest resource embedded in the .exe, I notice that the "requestedExecutionLevel" is set to "asInvoker" which I wouldn't expect. I would have expected it to be "requireAdministrator".How can it be that it's set to run asInvoker, but still trigger the UAC prompt? What method is it using to request elevation? (I am talking about without setting the "run as admin" flag in the properties dialog or the registry setting).Thanks, Andrew
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/2b85f3d7-aa59-4348-9d4c-bb9b949a9f73n%40googlegroups.com.
On Tuesday, November 11, 2025, 04:52:34, ming tong wrote:
If I need the manifest to have the value "requireAdministrator", what should I do?
I am using the latest version, but even after I set the "PrivilegesRequired=admin" in the install script, it still generates the value "asInvoker"
You need to edit the manifest in your own application – Inno will not modify your files (if you're talking about Inno itself, it will never have requireAdministrator on installers it produces, because it needs the initial process to run without elevated user rights, and it will elevate the installer process on its own).
You need to edit the manifest in your own application