[wix-users] Burn: How to detect ProductCode of current (or any other) package in the bundle?
rob at firegiant.com
Tue Apr 12 06:19:20 PDT 2016
BootstrapperApplicatData.xml sole purpose is to be used by BAs. It's not intended to be a hidden feature.
Short replies here. Complete answers over there: http://www.firegiant.com/
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Tuesday, April 12, 2016 5:39 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Burn: How to detect ProductCode of current (or any other) package in the bundle?
BootstrapperApplicationData.xml is generated as part of the build process when a 'setup' (bootstrapper) project is compiled and is embedded into the bundle.exe. (At build time, for build troubleshooting, you can find these file in your intermediate "obj\$(Configuration)" folder (by default) IF in your project properties you enable Build\'Do not delete temporary file' check box.)
At run time on a target PC, you can launch your bundle.exe, and while it is running go to your %temp% folder. Look at the most recent folder created with some GUID name, and then in the sub folder. For wix 3.10.2 or later look for a folder named .ba (or .ba#) and you will find the files related to your bundle extracted, including BootstrapperApplicationData.xml.
Generally BootstrapperApplicationData.xml is a 'hidden' implementation detail of a bundle which you don't need to know about, but it does contain interesting details and you can add to those details at compile time to pass data to you BA.
You can add data to the BootstrapperApplicationData.xml by using the CustomTable/@BootstrapperApplicatinData='yes' attribute.
This post might help fro reading the xml file:
More information about the wix-users