Wix进度条和UAC提示

发布于 2024-09-08 15:35:35 字数 197 浏览 5 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

草莓味的萝莉 2024-09-15 15:35:36

也许唯一有帮助的方法是将安装程序分成几个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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文