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

Reuss, Matthias matthias.mr.reuss at sivantos.com
Tue Apr 12 03:27:21 PDT 2016


When and under which preconditions is BootstrapperApplicationData.xml generated, and where is it documented? I do not find it on my test machine.

Best regards,

Matthias Reuss

-----Ursprüngliche Nachricht-----
Von: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] Im Auftrag von Magi, Sampattakumar S
Gesendet: Dienstag, 12. April 2016 12:03
An: WiX Toolset Users Mailing List
Betreff: Re: [wix-users] Burn: How to detect ProductCode of current (or any other) package in the bundle?

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

Or

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/

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



More information about the wix-users mailing list