1

我开发了一个 32 位和 64 位格式的应用程序。这些应用程序也需要相应的注册表项。我使用 WiX 将这些作为 32 位和 64 位的单独软件包提供。

现在我的要求是创建一个安装程序,它根据操作系统配置安装组件。我尝试使用 Bootstrapper 来捆绑我的包。

我的引导程序代码如下所示:

<Bundle Name="Bootstrapper" Version="1.0.0.0" Manufacturer="MYCOMPANY" UpgradeCode="b24f74ca-883c-4572-9479-37d92d733aa0">
  <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
  <Chain>
    <ExePackage Id="source1" Compressed="yes" PerMachine="yes" SourceFile="32\Sample.exe" InstallCondition="Not VersionNT64" />
    <ExePackage Id="source2" Compressed="yes" PerMachine="yes" SourceFile="64\Sample.exe" InstallCondition="VersionNT64" />
  </Chain>
</Bundle>

我的引导程序输出是 MSI。当我运行 MSI 时,我会进入MainEngineThread is returning 1620详细日志。

请建议我如何捆绑两个 EXE 以获得单个 MSI 包。

4

1 回答 1

0

错误 1620 并不是特别讨厌 - 它只是意味着它无法打开 MSI 文件,最简单的解释是您的目录结构不正确并且 exe 调用 MSI 安装时使用了不正确的位置或 MSI 名称文件。

于 2014-05-06T17:29:22.243 回答