Hi, Is (&FeatureName = 3) AND NOT (!FeatureName = 3) expression syntax not 
working in WIX3 version 3.0.3907.0?  Currently I am running the WIX3 version 
3.0.3907.0.  I am having the issue with the Component conditions.  According to 
the WIX tutorial expression syntax 
(http://www.tramontana.co.hu/wix/lesson5.php) 
“(&FeatureName = 3) AND NOT (!FeatureName = 3) 
Run action only if the product will be installed locally. Do not run action on 
a reinstallation.The term &FeatureName = 3 means the action is to install the 
feature locally.The term NOT (!FeatureName = 3) means the feature is not 
installed locally. “
In another word, the application will be installed at the first time and the 
user picks a particular Feature (Does the FeatureName mean the FeatureID?) from 
the Custom installation setting or picks the Typical installation, which means 
installing everything. 
 
Here is my sample below:
              <Component Id="Comp_LocationB" DiskId="1" 
Guid="60580A66-3401-45FA-8B36-EB62CD35AD21">                <File 
Id="F0001_OFile.xml" Name="OFile.xml" Source="..\Location B\OFile.xml" />       
         <Condition>(&amp;FeatureA= 3) AND NOT (!FeatureA= 3) </Condition>      
        </Component> I thought if the WIX works properly, the OFile.xml will 
only be installed if the FeatureA is being picked and in brand new 
installation.  However, it didn’t work at all.  No matter the user picks 
Typical Installation or Custom Installation (by manually selecting FeatureA).  
The OFile.xml never gets installed.  Is this a bug in WIX3 version 3.0.3907.0?  
Or I just don’t know how to create Component Condition?
 Please help if anyone has some idea.  Thank you very much.  
 Kai
_________________________________________________________________
Going green? See the top 12 foods to eat organic.
http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to