[40分求助][无人气啊!!]VS2005制作的MSI安装包“正在安装”时候很慢目测有20S才跳出用户账户控制
本帖最后由 iamcxl369 于 2012-10-19 13:26:44 编辑 如题:
用VS2005制作了安装部署的的msi包,但是在“正在安装”这一步骤的时候大概等待15-20秒钟才,跳出用户账户控制的对话框.
问题:
有什么办法可以让这个过程加速,这样的用户体验太差了!
怎么没有人气???
[解决办法]
无解!
[解决办法]
我来看答案
[解决办法]
There's a few steps to do before the UAC dialog.
1 reading the publisher off the signature to show in the consent dialog, as well as verifying the file is not tempered after signing. This could take a while if the setup package is too large. You can create a small setup.exe that launches the MSI elevated so you don't get a delayed prompt, but you need to call mt.exe to demand elevation for your setup.exe, or else the Visual Studio Setup Project would probably ask elevation after the user choose to install for all user, a per-user install does not need UAC.
2 dimming the application desktop, switching to and then from the secure desktop after your consent. If you notice a delay in switching back to the application desktop your GPU is probably too busy. You can try temporarily turning off the Secure Desktop switching feature in UAC before installing.
------------------------
上面是蒋晟,在MSDN给的答案.
[解决办法]
1>Windows Installer有回滚的功能,因此在安装和卸载之前会创建系统还原点;
这个是非常费时的操作!
2>注册组件到注册表;
注册表的遍历的是线性的,因此性能也慢!
3>如果文件太大,则检测数字签名也会占用更长的时间;
------------
前两个都涉及到注册表的操作!
第三步可以通过另外的方式来解决!