Wix ProgressBar and UAC Invitation

I created an application installer using Wix. I have a ProgressBar control present on the screen with copying files, etc. When UAC is turned on, after this screen appears, it freezes for 10 seconds or more, and then the UAC prompt appears: "Do you want to allow the following program to install software on this computer?"

My question is: how to make the progress bar move while waiting for UAC output? Or how to make UAC show faster (<5 seconds)?

Thanks.

+4
source share
1 answer

Probably the only approach that will help is to split your installer into several exes (or a mixture of exes, etc.). I believe that the pause before the first UAC screen depends on the exe size. Everything started from the elevated process is promoted, so if you can get a small boot block, it should release UAC quickly, then you can run the rest of it.

+6
source

Source: https://habr.com/ru/post/1314946/


All Articles