Wix Burn: Custom Bootstrapper upgrade but Installs side by side with older version -


I am struggling with my custom bootstrap upgrade issue. By using the following, I am using LaunchAction.Install

It also upgrades Boostapper along with the product, but the old bootsprint remains there, as shown in the following screen shot.

screenshot from my add / remove programs palette

If I Since 1.0.0.0 is running, it will display a dialog to install it but will not do anything. However, clicking on Win 1.0.1.0 will give me the option to uninstall the product. However, at Uninstall, it will only remove itself and "My product" will be left behind.

I also

  _bootstrapper.Engine.Plan (LaunchAction.UpdateReplace);  

and

  _bootstrapper.Engine.Plan (launchaction.update replay embedded);  

But it has no effect.

Question: How to upgrade the old installation without falling into the above situation? Can anybody provide a work example of the CustomBA upgrade?

Regards

Check schematic bundle event with what your old bundles do you Can tell.

If you want a bundle to replace the old, the upgrade code should be the same for both. In this case, it will uninstall the old bundle by default. Apart from this, the old bundle needs to support silent displacement because it will be called with logic / will be left after installing new.

You can see in BootstrapperApplication.Command.Display Property. If it is called from another bundle it should be "embedded" BootstrapperApplication.Command.Action is set to "uninstall" in this case.

If this does not work, then check the logs created in the AppData \ Temp folder.


Comments