I implemented the approach to passing data from my bundle via the BootstrapperApplicationData.xml to the mba some time ago. But today I came across a much easier approach. I commented out the custom table and the BootsrapperApplicationData class (which I had modified from the sample code in the link mentione earlier) and replaced it with the following.
In the bundle wxs I created a variable like this: <Variable Name='MyBundleVer' Value='$(var.ProductVer)' Type='string' Persisted='yes' /> Since I am only displaying the data I did not need the bal:Overridable='yes' in the above element. And in the mba to get this string variable I do: public string Version { get { //return MymbaUX.BootApplicationData.Data.Version; return MymbaUX.Model.Engine.StringVariables["MyBundleVer"]; } } I'm sure there are advantages to the other approach for large amounts of data, but I just needed to display the version of the bundle in the title of my main window. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-get-package-version-using-burn-API-tp7591717p7591751.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users