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?
Asked
Active
Viewed 190 times
2 Answers
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
-
This was my thought as well. My only concern was how to prevent the execution during initial installation of the bootstrapper. – B.Flo Jul 15 '16 at 20:03
-
Check edit. Let me know if that doesn't work or if you need more help. – Harsh Pandey Jul 15 '16 at 20:39
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