我开发了一个 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 包。