Difference between two "run as Administrator" flags - Advanced Installer Community
Pakkessino
Posts: 4
Joined: Fri Apr 03, 2015 9:15 am

Difference between two "run as Administrator" flags

Hi,

would you please be so gently to explain me what is the difference between the two flags
"Install parameters > Installation options > run as Administrator"
and
"Launch condition > run only if user has administrator provileges" ?

Many thanks
Regards
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Difference between two "run as Administrator" flags

Hello,

The Run only if user has administrator privileges predefined launch condition will make sure that the installation will not run (not even the User Interface) if the user which runs the package doesn't have administrator privileges. However, on Vista and above, the Launch Condition will not work and the user will be prompted for an Administrator password when clicking "Install".
So, in Windows Vista and above, the Run only if user has administrator privileges launch condition verifies whether or not the package is elevated at the moment this is tested for. This means the user might be an administrator but the package did not yet elevate, meaning the launch condition will fail.

When you check the Run as Administration option from the Install Parameters page, the package type is automatically changed to EXE.
The benefit of elevating the bootstrapper application is that privileges are elevated only once (if necessary and at the beginning of the installation) and these privileges are inherited by all of the installation's prerequisites and the MSI file without requiring multiple elevation prompts.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”