1

I have an msi that is not installed by my bootstrapper that needs to be uninstalled when the bootstrapper is being uninstalled(not when it is being installed). Is there a way to do this in burn?

B.Flo
  • 11
  • 2

2 Answers2

1

Use a custom action and set its ExeCommand attribute to the msiexec uninstall command with the /x parameter. You will need to know the product code of that MSI.

msiexec /x {Package | ProductCode}

You can read more about msiexec command and its parameters over here.

EDIT: To prevent it from running during installation set the condition of the custom action to Remove="ALL". Read more about it here.

Community
  • 1
  • 1
Harsh Pandey
  • 831
  • 7
  • 12
1

Not today, there's an open feature request for bundles to be able to uninstall arbitrary MSI's by ProductCode - https://github.com/wixtoolset/issues/issues/4858.

Sean Hall
  • 7,629
  • 2
  • 29
  • 44