Chain Packages into a Bundle

WiX Toolset

Chain Packages into a Bundle

To chain a package, you can either put the package definition directly under the <Chain> element or put a <PackageGroupRef> inside the <Chain> to reference a shared package definition.

Here's an example of having the definition directly under <Chain>:

    <?xml version="1.0"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
      <Bundle>
        <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

        <Chain>
            <ExePackage
              SourceFile="path\to\MyPackage.exe"
              DownloadUrl="http://example.com/?mypackage.exe"
              InstallCommand="/q /ACTION=Install"
              RepairCommand="/q ACTION=Repair /hideconsole" />
        </Chain>
      </Bundle>
    </Wix>

Here's an example of referencing a shared package definition:

    <?xml version="1.0"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
      <Bundle>
        <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

        <Chain>
            <PackageGroupRef Id="MyPackage" />
        </Chain>
      </Bundle>
    </Wix>