[wix-users] Burn: How to detect ProductCode of current (or any other) package in the bundle?

Magi, Sampattakumar S Sampattakumar.Magi at in.unisys.com
Tue Apr 12 03:03:07 PDT 2016


Have a look at "BootstrapperApplicationData.xml" in the %temp% location. I think, u may just have to parse the xml.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Reuss, Matthias
Sent: Tuesday, April 12, 2016 1:15 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Burn: How to detect ProductCode of current (or any other) package in the bundle?

Hi,

how can I retrieve the ProductCode of a certain MsiPackage in the bundle?

I need to get one of the ProductCodes at uninstallation time in order to check whether a certain component is registered with that product.

I know that Burn has to read the ProductCodes (i.e. to detect upgrades), but I have not found a way where it exposes them to the CustomBA (most straightforward place would be in the EventArgs).

As I need this data on uninstall, I cannot simply query the bundled package. So I need to resort to some less straightforward way, such as

Enumerate all installed products and search for the product name
Use ComponentInstallation.ClientProducts, as the component code I am looking for is known (probably the easiest way)

Or does Burn provide the Product Codes somewhere?

Best regards

Matthias Reuss

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list