I have created a Wix Burn app that I am installing two MSI's with. Works great.
- The MSI files install properly
- The Wix Burn app registers with ARP.
- The MSI files do not register with ARP
- I can do Major Upgrades
- I can install and uninstall manually with a local copy of the Wix Burn app
- I can programmatically execute the Wix Burn app to uninstall (using /x)
The Problem:
I know two way to uninstall using a Wix Burn app:
- Click on the Uninstall button in ARP (requires user involvement)
- Launch a copy of the Wix Burn app that installed the product
I see in the Wix Burn log that Windows caches my Wix Burn app install in much the same way that MSIEXEC will cache MSI files. Is there a way to programmatically ask Windows or MSI to use the cached version of the Wix Burn app to do the uninstall?
A Possibility:
Presumably I could use MsiGetProductInfo() to get a path to the cached Wix Burn app. To do that, however, I need my app's Product Code. However, Product Codes are not attributes of elements in Wix so I am not seeing how to get a Product Code for a Burn package.