Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the UAC dialog take a long time to be displayed?

I am working on a Windows installer using the WIX toolkit, and it takes FOR EVER (15-45 seconds) for the UAC dialog to pop up during an install. is there any way to speed this up?

like image 843
Brian Avatar asked May 06 '12 15:05

Brian


People also ask

How long is UAC prompt?

UAC has a timeout of two minutes. If no acknowledgment is received within those two minutes, the action fails silently (same as if you would have declined).

What triggers a UAC prompt?

There are many types of activities that may trigger a UAC prompt: Running a desktop application as an administrator. Making changes to settings and files in the Windows and Program Files folders. Installing or removing drivers and desktop applications.

Is UAC enabled by default?

It is enabled, by default, on those systems and is used to help protect the system from unauthorized malicious activity. When enabled, it allows users to execute daily tasks using the "least privilege" principle, where users are granted only the rights they need to do certain tasks.


2 Answers

Thanks to joegrage for pointing me in the right direction on this one. The trick to this seems to be the MSIFASTINSTALL property.

The MSIFASTINSTALL property can be used to reduce the time required to install a large Windows Installer package. The property can be set on the command line or in the Property table to configure operations that the user or developer determines are non-essential for the installation.

The value of the MSIFASTINSTALL property can be a combination of the following values.

value  Meaning 
-----  -----------------------------------------------------------
0      Default value
1      No system restore point is saved for this installation.
2      Perform only File Costing and skip checking other costs.
4      Reduce the frequency of progress messages.

In WIX, you can use a combination of these values like so:

<Property Id="MSIFASTINSTALL" Value="3" />

A more detailed write up about this property can be found on this blog post.

like image 99
Brian Avatar answered Oct 18 '22 10:10

Brian


Everytime you install software using Windows Installer, a restore point is created prior to do the actual installation. Ref: http://msdn.microsoft.com/en-us/library/aa372060.aspx

You can turn this off in the registry: http://msdn.microsoft.com/en-us/library/aa369758.aspx

like image 38
joerage Avatar answered Oct 18 '22 09:10

joerage