clint
Posts: 135
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

UAC message when installing

AI-7.1.1

When the MSI is started the UAC doesn't request confirmation to execute.

After going through the dialogs and after clicking the final "Install" button, the progress dialog comes up and a message shows that the Status is being checked.
After a few seconds just before the actual installation starts, the UAC pops up with the usual message asking for permission to run.

My questions are:

1. Is this normal that the UAC comes up at this point, and not when the MSI is first started?

2. Why doesn't this happen with other MSI packets I have created before, either under AI-7.0.1 or through VS-NET Setup?

3. Or is it is now happening because of some change in the AIP which I made?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: UAC message when installing

Hi,
Is this normal that the UAC comes up at this point, and not when the MSI is first started?
Yes, this is the normal behavior. MSI installations use two sequences:
- the UI sequence which shows the installation dialogs; it's purpose is to collect information from the user and it doesn't need elevation
- the execute sequence which performs the actual installation; if the install needs Administrator privileges, this sequence needs elevation

When the "Install" button is clicked, the execute sequence is launched. If it requires Administrator privileges, an elevation prompt will be shown.
Why doesn't this happen with other MSI packets I have created before, either under AI-7.0.1 or through VS-NET Setup?
This happens only for "Per Machine" or "Per User (with administrator rights required)" installations.

If you want to elevate the installation from the start, you can try using the EXE bootstrapper. In the Bootstrapper tab of the "Media" page you can set the "Execution Level" combo to Require Administrator.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clint
Posts: 135
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Re: UAC message when installing

Great - Thank you for your help!

Return to “Common Problems”