Just like Rob stated, use:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; 
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension";>
<Bundle ...>
<bal:Condition Message="Your error message about the OS goes here.">VersionNT 
>= v5.0</bal:Condition>
</Bundle>

And ensure your project has a reference to WixBalExtension.dll.

The underlying problem is you missed the documentation on the Bundle/@Condition
The condition of the bundle. If the condition is not met, the bundle will 
refuse to run. Conditions are checked before the bootstrapper application is 
loaded (before detect), and thus can only reference built-in variables such as 
variables which indicate the version of the OS.

And the documentation on the Burn built in variables:
VersionNT - version value representing the OS version. The result is a version 
variable (v#.#.#.#) which differs from the MSI Property 'VersionNT' which is an 
integer. For example, to use this variable in a Bundle condition try: 
"VersionNT > v6.1"

-----Original Message-----
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Wednesday, September 26, 2012 9:51 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Burn conditions

I tried setting a condition:

/<Bundle Name="My Software"
          Condition="VersionNT >= 500"
          ...>/

But it always evaluates as false. 

/Condition 'VersionNT >= 500' evaluates to false.
Bundle global condition check didn't succeed - aborting without loading 
application./

A Windows 7 machine should have a VersionNT property greater than 500. In fact, 
even setting Condition="true" evaluates to false. 

/Condition 'true' evaluates to false.
Bundle global condition check didn't succeed - aborting without loading 
application./

Is there a special syntax to use here?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-conditions-tp7580784p7580872.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to