[wix-users] How to configure a Bundle upgrade to uninstall patches?

Robert Goodridge robert.goodridge at lansa.com.au
Mon Aug 1 15:59:42 PDT 2016


WiX 3.9.1208
Windows 10

I have built 4 bundles and the xml is listed at the end of the email in version number order. Its very simple. Maybe too simple.

If I install 1.0.0, 1.0.0.1 and 1.0.0.2 and then uninstall 1.0.0, all the bundles are removed from Programs and Features. Goodness :)

If I install 1.0.0, 1.0.0.1 and 1.0.0.2 and then install 2.0.0, only the 1.0.0 bundle is removed from Programs and Features. Badness :(

If I add ParentName="Burn Installer" to the patches, the behaviour is essentially the same but with the patches remaining listed in View Installed Updates instead of Programs & Features.

This seems so basic that I must be doing something wrong. Can anybody help?

Ps If the msi and msp are directly installed and not via the bundles then all behaviour is correct. I suspect that the msp are actually uninstalled, its just that the bundle listing is not removed.

p.p.s. Note that Wix 3.10.3 has far worse behaviour in regard to patches and upgrades

Warm regards

Rob Goodridge | CloudArchitect | LANSA Product Centre
+61-2-8907-0251
Sydney, AEST UTC+10
mailto:Rob,Goodridge at lansa.com.au
LANSA<http://www.lansa.com/>
Blog<http://blog.lansa.com/> | Facebook<https://www.facebook.com/lansasoftware> | LinkedIn<https://www.linkedin.com/company/lansa> | Twitter<https://twitter.com/LANSA>

There's a quiet revolution afoot: lansa.com/game-changer<http://www.lansa.com/game-changer>


<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Bundle Name="Burn Installer" Version="1.0.0" Manufacturer="LANSA" UpgradeCode="A184CF47-6B44-40FB-B5A2-900CFE0B90CB" Copyright="..." AboutUrl="...">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
    <Chain>
      <MsiPackage Id="MainPackage" SourceFile="C:\dev\Trunk\work\x_win95\x_lansa\X_Apps\TESTLIST\TESTLIST_v1.0.0_en-us.msi" Vital="yes" DisplayInternalUI="yes" />
    </Chain>
  </Bundle>
</Wix>


<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <Bundle Name="Patch 1.0.0.1" Version="1.0.0.1" Manufacturer="LANSA" UpgradeCode="A184CF47-6B44-40FB-B5A2-900CFE0B90CB" Copyright="..." AboutUrl="...">

    <RelatedBundle Id="A184CF47-6B44-40FB-B5A2-900CFE0B90CB" Action="Patch"/>

    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>

      <MspPackage Id="Patch" SourceFile="C:\dev\Trunk\work\x_win95\x_lansa\X_Apps\TESTLIST\TESTLIST_v1.0.0.1_en-us.msp" Vital="yes" DisplayInternalUI="no" PerMachine="yes" Permanent="no"/>

    </Chain>

  </Bundle>

</Wix>


<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <Bundle Name="Patch 1.0.0.2" Version="1.0.0.2" Manufacturer="LANSA" UpgradeCode="A184CF47-6B44-40FB-B5A2-900CFE0B90CB" Copyright="..." AboutUrl="...">

    <RelatedBundle Id="A184CF47-6B44-40FB-B5A2-900CFE0B90CB" Action="Patch"/>

    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>

      <MspPackage Id="Patch" SourceFile="C:\dev\Trunk\work\x_win95\x_lansa\X_Apps\TESTLIST\TESTLIST_v1.0.0.2_en-us.msp" Vital="yes" DisplayInternalUI="no" PerMachine="yes" Permanent="no"/>

    </Chain>

  </Bundle>

</Wix>


<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <Bundle Name="Burn Installer" Version="2.0.0" Manufacturer="LANSA" UpgradeCode="A184CF47-6B44-40FB-B5A2-900CFE0B90CB" Copyright="..." AboutUrl="...">

    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

    <Chain>

      <MsiPackage Id="MainPackage" SourceFile="C:\dev\Trunk\work\x_win95\x_lansa\X_Apps\TESTLIST\TESTLIST_v2.0.0_en-us.msi" Vital="yes" DisplayInternalUI="yes" />

    </Chain>

  </Bundle>

</Wix>



More information about the wix-users mailing list