Wix进度条和UAC提示
我使用 Wix 创建了应用程序安装程序。我的屏幕上有一个 ProgressBar 控件,用于复制文件等。启用 UAC 后,出现此屏幕后,它会冻结 10 秒或更长时间,然后显示 UAC 提示:“是否允许安装以下程序这台计算机上有软件吗?”。
我的问题是: 如何在等待显示UAC提示时让进度条移动?或者如何强制UAC显示得更快(<5秒)?
谢谢。
I have created application installer using Wix. I have a ProgressBar control present on the screen with copying files etc. When UAC is enabled, after this screen appeared, it freezed for a 10 or more seconds and then UAC prompt is displayed : "Do you want to allow the following program to install software on this computer?".
My question is:
how to make progress bar move during waiting for UAC prompt to be displayed? Or how to force UAC to be shown faster (< 5 seconds)?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许唯一有帮助的方法是将安装程序分成几个exe(或exe的混合物等等)。我发现第一个UAC屏幕之前的暂停取决于exe的大小。从提升的进程启动的所有内容都会提升,因此如果您可以启动一个小型引导程序,它应该很快弹出 UAC,然后您可以从中启动其余部分。
Probably the only approach that will help is splitting your installer into several exes (or a mixture of exes and whatever.) I find that the pause before the first UAC screen depends on the size of the exe. Everything launched from an elevated process is elevated, so if you could get a small bootstrapper going, it should pop the UAC quite quickly, then you can launch the rest from that.