[wix-users] Burn: Evaluate conditions simultaneously Or all one by one before terminating.

Farrukh Waheed farrukh1 at gmail.com
Wed Sep 30 22:17:46 PDT 2015


Hi,
If we have multiple conditions in Burn, it will evaluate them one by one.
It would evaluate next if before is true.

Is it possible to evaluate all of them and then terminate and show message
for false conditions?

I know we can do that in one condition like:

  <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
    <util:RegistrySearchRef Id="PROD_161_Ver_Maj"/>
    <util:RegistrySearchRef Id="PROD_161_Ver_Min"/>
    <bal:Condition Message="Some or all pre-requisites are missing
from this machine, required by [WixBundleName]  " >

      <![CDATA[Installed OR (NETFRAMEWORK45 >= 378389) OR
((PROD_161_Maj_Ver = 16) AND (PROD_161_Min_Ver >= 1))]]>

    </bal:Condition>

And this would show one dialog with that one message.

But how about :

    <util:RegistrySearchRef Id="NETFRAMEWORK45"/>

    <bal:Condition Message="[WixBundleName] requires the installation
of Microsoft .Net Framework 4.5. Please install Microsoft .Net
Framework 4.5 before installing this product. " >

      <![CDATA[Installed OR (NETFRAMEWORK45 >= 378389)]]>
    </bal:Condition>

    <util:RegistrySearchRef Id="PROD_161_Ver_Maj"/>
    <util:RegistrySearchRef Id="PROD_161_Ver_Min"/>

    <bal:Condition Message="[WixBundleName] requires the PROD 1.6.1 "  >
      <![CDATA[Installed OR ((PROD_161_Maj_Ver = 16) AND
(PROD_161_Min_Ver >= 1))]]>
    </bal:Condition>

and evaluate each condition even if it is false and then show their
separate messages in one dialog?
Can we do this in Managed Bootstrapper by overriding something?

Best regards

Farrukh


More information about the wix-users mailing list