5

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.

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
Mihai Cozma
  • 385
  • 1
  • 12
  • Have you tried the default behavior? It might be just what you need. – Yan Sklyarenko Oct 01 '12 at 12:28
  • 1
    Haven't tried it because I cannot yet, I'm a bit early in the bundle's development and knowing the answer (whether it is the default behavior, how can I make it that way or that it is impossible) would determine how I develop my packages further. – Mihai Cozma Oct 01 '12 at 12:40

1 Answers1

7

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.

Justin
  • 84,773
  • 49
  • 224
  • 367