Since the default level for the feature is already 1, you only need to
use the condition that sets the level to 0. If you are trying to use
the conditions to choose which components to install, then you need to
create another feature for those components or use the condition element
on the components themselves.
-Brian Simoneau
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Venkatesh
Sent: Thursday, May 17, 2007 8:31 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with condition statement under
feature element
I want to use condition under feature element. Here is how it
looks like now
<Feature Id='MainProgram' Title='Program' Description='The main
executable.' Level='1'>
<Condition Level="1" ><![CDATA[Unicode = "Yes"]]></Condition>
<ComponentRef Id='component0' />
<ComponentRef Id='component1' />
<Condition Level="0" ><![CDATA[Unicode = "No"]]></Condition>
<ComponentRef Id='component2' />
</Feature>
it is installing all the components for both conditions. Am I
doing anything wrong here?.
Venkatesh
-------------------------------------------------------------------------
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