【问题标题】:MSI: How to speed up ExecuteActionMSI:如何加快 ExecuteAction
【发布时间】:2010-08-30 08:02:33
【问题描述】:

在我当前的 MSI ExecuteAction 中至少需要 1m 30s。我创建了一个简单的 msi(来自 WiX 示例),ExecuteAction 大约需要 4 秒。

如何优化我的 MSI 包,以便 ExecuteAction 运行得更快?

【问题讨论】:

  • 使用 msiexec 输出一个日志文件,并粘贴到这里。

标签: windows-installer


【解决方案1】:

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. 解决方法是禁用安装程序的系统还原点。 这是 WiX 中的解决方法:

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

Here is another example of the same problem as yours 我在哪里找到了解决方案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-23
    • 2014-08-03
    相关资源
    最近更新 更多