You want the Condition element

 

<Condition><![CDATA[VersionNT<501]]></Condition>

 

Which can also check a property such as my Build property

 

<Condition><![CDATA[Build<>0]]></Condition>

 

 

 

This is how I declare the property that is checked in the condition.

      <Property Id="Build"><![CDATA[0]]></Property>

 

 

Check the docs to see what elements can have conditions:

http://wix.sourceforge.net/manual-wix2/wix_xsd_condition.htm

 

 

Hope that helps.

 

-Trevor

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Burton
Sent: Wednesday, May 16, 2007 2:53 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditional statement?

 

I have only found <?if?> which is a preprocessor instruction. Is there an
equivalent runtime conditional statement? If the installer clicks on a
button I record the fact by setting a property. I want to be able to test
for the values of this property and a conditional <?if?> like statement
seemed to be what I need.

 

Thank you.

 

Kevin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to