I think you should use DetectCondition='ub5Present' as the value won't be set 
unless the component is found.

Neil

-----Original Message-----
From: Kenneth Porter [mailto:sh...@sewingwitch.com] 
Sent: 18 August 2013 11:53
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] ExePackage/@DetectCondition syntax

The following bundle installation never runs even when the package is detected 
absent (ub5present is set to ""). What's wrong with my syntax? It seems that 
the DetectCondition value always evaluates to true.

<util:ComponentSearch Id="Unibrain_5_installed"
        Guid="{D67463F0-DDA3-499F-88E6-AF3E5689A8CD}"
        ProductCode="{F65FE148-FCF5-42F7-8803-FA0B7DA8B8A4}"
        Variable="ub5Present"
        />

...

<Chain>
        <ExePackage SourceFile="..\..\lib\Unibrain5\ubCorePro32_040110.exe"
                Name="Unibrain 5 (April 1, 2010)"
                Compressed="yes"
                PerMachine="yes"
                Vital="yes"
                DetectCondition='ub5Present &lt;&gt; ""'
                />


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to