使用wix工具集合并两个msi

gau*_*pta 2 wix wix3.7

如何使用wixedit合并两个msi,目前他们有4.0版本的wixtoolset.在他们提到的文档中,使用bundle和chain标签可以在windows中合并两个msi.但是,当我尝试这样做时,它总是显示一些错误.请让我知道使用捆绑和链标签合并两个msi的wix工具集的任何示例.

我遵循wix 3.6的pdf中提供的Bootstrapper方法.使用链元素捆绑两个msi.

Gil*_*lad 5

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <Bundle Name="Prog" Version="0.0.0.1" Manufacturer="my Corporation" UpgradeCode="f380ae43-5df1-4cfe-9297-526e3e333e99">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
      <bal:WixStandardBootstrapperApplication LicenseFile="..\license.rtf" />
    </BootstrapperApplicationRef>
    <Chain>
      <!-- TODO: Define the list of chained packages. -->
      <PackageGroupRef Id="Netfx45FullPackage" />
    </Chain>
  </Bundle>
  <Fragment>
    <PackageGroup Id="Netfx45FullPackage">
      <MsiPackage Id="Prog" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\Prog.msi" />
      <MsiPackage Id="Prog2" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\Prog2.msi" />
    </PackageGroup>
  </Fragment>
</Wix>
Run Code Online (Sandbox Code Playgroud)

您可以添加变量installerPath 在此输入图像描述