Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify different install/uninstall order of .msi packages within a Wix bundle?

This is my first Wix bundle so I might not know obvious stuff but I have the following requirement:

If I have a Wix bundle package which inside has a bootstrapper application and two .msi packages (lets call them A and B). I understand that if I put them in a Chain element, they will be installed in that order, in my case I want A to be installed first, then B. However upon uninstalling, I want B to be uninstalled first, than A. Is that possible?

Thanks.

like image 209
Mihai Cozma Avatar asked Oct 01 '12 12:10

Mihai Cozma


1 Answers

What you are describing is the default behaviour - if Burn installs A before B, then A will also be uninstalled after B.

The order is defined by the After argument of the MsiPackage element, which identifies the package that this package should be installed after. If it is not present then this defaults to the previous element in the parent Chain, so that the order of installation is simply the order of the child elements in your Chain.

like image 185
Justin Avatar answered Oct 20 '22 02:10

Justin