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?
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).
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With