A way around UAC

If you are making deployment packages in a secure enviroment, UAC might be set high by policy.

If you script your packages, try using this line before you run the installer.
set __COMPAT_LAYER=RunAsInvoker

Then run the installation line e.g.

setup.exe /s /SMS /f1"c:\test\test.iss"



  • Nice tips. Just want know , in which script languages can i use it ? - egiberne 7 years ago
  • All of them I guess. Visual Basic, batch, powershell, PET basic. - Arvidb 7 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ