设置 UAC 提升时间太长
我的设置 (MSI) 的 UAC 提升花费的时间太长(约 20 秒)。
来自 此处 我知道这可能是由于长签名测试造成的。
我的设置本身没有签名,所以我猜想进入我的设置的其他东西会被检查签名。
是否有办法检查我的设置中导致此问题的原因以及如何改进此问题?
还有其他问题可能导致海拔延迟吗?就像启发式检查海拔?有没有办法解决这个问题?
The UAC elevation of my setup (MSI) takes too long (~20 seconds).
from here I understand that this could be due to long signature test.
My setup itself is not signed so I guess something else that gets into my setup is checked for signature.
Is there anyway to check what in my setup causing this and how to improve this issue?
Also is there any other issue that can be the cause of that delay in elevation? like maybe the Heuristic checks for elevation? Is there anyway to workaround that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您提到的文章提供了很好的解释。所以它应该是你的起点。
提升请求由 Windows Installer 作为安装 UI 序列的一部分进行处理。该序列包含一个接一个地立即执行的动作。立即请求提升,但 Windows Installer 需要一些时间才能处理它。
您可以尝试的唯一改进是使用不包含 MSI 的 EXE 引导程序。正如文章所建议的,较小的文件应该花费更少的时间进行检查。
请注意,仅仅因为您没有使用数字签名,并不意味着不执行检查。
The article you mentioned offers a great explanation. So it should be your starting point.
The elevation request is handled by Windows Installer as part of your installation UI sequence. This sequence contains actions which are executed immediately one after another. The elevation is requested immediately, but it takes some time until Windows Installer processes it.
The only improvement you can try is using an EXE bootstrapper which doesn't include the MSI. Like the article suggests, a smaller file should take less to check.
Please note that just because you are not using a digital signature it doesn't mean that a check is not performed.