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" ?
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.
FOLLOW US
Get the latest news in Application Packaging