2010-08-30 41 views
2

在我目前的微星ExecuteAction至少需要1分30秒。我创建了一个简单的msi(来自WiX示例),ExecuteAction需要大约4秒钟的时间。MSI:如何加速ExecuteAction

如何优化我的MSI软件包,使ExecuteAction运行得更快?

+0

使用msiexec输出日志文件,并将其粘贴到此处。 – servermanfail 2011-03-10 23:16:12

回答

10

Windows使用ExecuteAction启动system restore point。根据您的机器配置,这可能需要一段时间。在对我们公司的安装程序进行性能测试期间,我们遇到了5到26秒的过去时间。

Windows XP,它似乎默认情况下不会创建系统还原点。但是,Windows Vista和Windows 7可以。以下是我们的测试结果超过24个机(平均值):

  • 的Windows XP:1秒
  • 的Windows Vista:7秒
  • 的Windows 7:13秒

有一种解决方法Windows 7(在Windows Installer 5中)。 Here is the MSDN article. 解决方法是禁用安装程序的系统还原点。 这里是维克斯变通方法:

<Property Id="MSIFASTINSTALL" Value="1"/> 

Here is another example of the same problem as yours在那里我找到了解决办法。