Thank for your help.

 

I know you are just trying to be consistent but when setting the property
(Build in this case). Do you have to escape it with CDATA? If the value you
are setting the property to is 0?

 

What if I want to conditionally set a property? If the value is empty or
null then I want to set it otherwise leave it along. It would be kind of
like a default value.

 

From: Trevor Clifton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 16, 2007 4:02 PM
To: 'Kevin Burton'; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Conditional statement?

 

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