Question

When a normal user runs a WiX installer which requires elevation, there appears to be a delay of 30 seconds or more between the user clicks the "Install" button and the UAC prompt comes up. This happens even though the install button is marked with the UAC shield, suggesting the installer "knows" that elevation will be required.

Is there a way to IMMEDIATELY throw up the UAC when the user 1) runs the installer or 2) clicks that "Install" button?

Was it helpful?

Solution

The length of time for the UAC prompt to come up depends on the size of the exe. (Try it yourself by right-click run as admin various exes of various sizes.) Therefore I have heard it suggested that you make a teeny launcher exe that will bring the prompt up quickly, and have it launch everything else. Anything launched from an elevated process is elevated.

Be sure to name your launcher well, for the 1% of users who actually read the UAC prompts.

OTHER TIPS

How big is your MSI file? I don't know for a fact, but I think splitting your files into a separate .cab file and possibly digitally signing it might make the validation of the MSI file go faster.

Otherwise, there really isn't anything you can do about it to my knowledge. I hope someone proves me wrong. :-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top