Join us for SoftSummit 2023. The 20th anniversary of the industry leading software monetization conference. April 18 and 20. Register Now

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JoderCoder
Level 8

Required Execution Level for the msi, not only the exe

Is it possible to set the Required Execution Level to Administrator for the msi as well? I know it is possible for setup.exe and I get the UAC window once user starts the exe installer. If not possible for msi, how does it get around it? I would think UAC would cause some problems when it is executing some UAC related stuff?
Labels (1)
0 Kudos
1 Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Required Execution Level applies to manifests which are used in .exe files, so have no bearing for .msi files. There is a setting in General Information > Summary Information Stream "Require Administrative Privileges" which indicates whether the execute sequence needs elevation, but it does not work the same way. It elevates by also running as a system service.

One option if you really need to enforce things would be to set a Launch Condition based on the AdminUser property in a project that sets MSIUSEREALADMINDETECTION to 1. In general I would not recommend this; instead relevant custom actions should be set to run deferred in system context.
0 Kudos