[wix-users] Nested bundles

Hoover, Jacob Jacob.Hoover at greenheck.com
Wed Mar 23 09:49:32 PDT 2016


<RelatedBundle Id="GUID_1" Action="Detect />

Would get your BA to detect it, but you would have to handle the detection and set a burn variable.  I think you would have to do a custom BA in order to handle those events.

I could see it as a valid feature request that RelatedBundle should support a Variable attribute that during a Detect action, we could assign its value based on the currently related bundles state (installed vs absent, and possibly if we wanted to get real fancy we could also support reading some of the other bundle properties).

https://github.com/wixtoolset/issues/issues/3693/ was another suggested approach where we should add a BurnPackage element, that would handle all the details for you automatically.


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Parkes, Kevin
Sent: Wednesday, March 23, 2016 11:04 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Nested bundles

I have a bundle which I would like to include as an ExePackage within another bundle.

In the outer bundle I have a util:ProductSearch for the UpgradeCode of the inner bundle (the result of which I use in ExePackage at DetectCondition). So, something like:

Bundle1.wxs
  <Bundle ... UpgradeCode="GUID_1"/>

Bundle2.wxs
  <util:ProductSearch ... UpgradeCode="GUID_1" Result="state" Variable="BUNDLE1_STATE"/>
  <ExePackage ... DetectCondition=" BUNDLE1_STATE <> 2"/>

However,  the ProductSearch, with Result="state", is coming back as 2 (absent) so the inner bundle isn't being removed on uninstall. From the uninstall log:
    Product or related product not found: {GUID1}
    Setting numeric variable 'BUNDLE1_STATE' to value 2

What am I doing wrong?

Thanks



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



More information about the wix-users mailing list