Just to be clear if DetectCondition is true it means the package is already installed. In your case "ub5Present" has a value of 'C:\Windows\system32\' does that mean it isn't installed?
-----Original Message----- From: Kenneth Porter [mailto:sh...@sewingwitch.com] Sent: 18 August 2013 23:24 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ExePackage/@DetectCondition syntax --On Sunday, August 18, 2013 10:05 PM +0000 Neil Sleightholm <n...@x2systems.com> wrote: > Probably worth checking the logs to see that the values you are > checking are. With no package installed: [0688:0740][2013-08-16T09:39:59]: Setting string variable 'ub5Present' to value '' [0688:0740][2013-08-16T09:39:59]: Setting numeric variable 'vcredistInstalled' to value 1 [0688:0740][2013-08-16T09:39:59]: Setting numeric variable 'visualStudioInstalled' to value 1 [0688:0740][2013-08-16T09:39:59]: Condition 'ub5Present <> ""' evaluates to true. [0688:0740][2013-08-16T09:39:59]: Condition 'vcredistInstalled OR visualStudioInstalled' evaluates to true. [0688:0740][2013-08-16T09:39:59]: Detected package: Unibrain_5__April_1__2010_, state: Present, cached: None [0688:0740][2013-08-16T09:39:59]: Detected package: Microsoft_Visual_C___2010_runtime_libraries, state: Present, cached: None With the package installed, and after changing the condition to just the variable name: [0EC0:0EC4][2013-08-16T11:23:19]: Setting string variable 'ub5Present' to value 'C:\Windows\system32\' [0EC0:0EC4][2013-08-16T11:23:19]: Setting numeric variable 'vcredistInstalled' to value 1 [0EC0:0EC4][2013-08-16T11:23:19]: Setting numeric variable 'visualStudioInstalled' to value 1 [0EC0:0EC4][2013-08-16T11:23:19]: Condition 'ub5present' evaluates to false. [0EC0:0EC4][2013-08-16T11:23:19]: Condition 'vcredistInstalled OR visualStudioInstalled' evaluates to true. [0EC0:0EC4][2013-08-16T11:23:19]: Detected package: Unibrain_5__April_1__2010_, state: Absent, cached: Complete [0EC0:0EC4][2013-08-16T11:23:19]: Detected package: Microsoft_Visual_C___2010_runtime_libraries, state: Present, cached: None I'm using, from the first line of the log: Burn v3.6.2816.0, Windows v6.1 (Build 7601: Service Pack 1) ------------------------------------------------------------------------------ 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