Hi, I am very new to the WIX. I don't know much about it. If anyone can help,
I will greatly appreciate. Now I am running into the issue relate to how to
conditionally install different files base on what features the user picks.
Let say I have three different files but they use the same file name,
(OFile.xml). All three files are under different folders. Therefore, I
create three separated components to contain these three files.
<Component Id="Comp_LocationA" DiskId="1"
Guid="B95BE7AA-F75C-4D07-9F37-6140204014F6"> <File
Id="F3175_OFile.xml" Name="OFile.xml" Source="..\Location A\OFile.xml" />
<Condition>((&FeatureA= 3) AND NOT (!FeatureA= 3) AND
(&FeatureB= 3) AND NOT (!FeatureB= 3)) OR ((&FeatureA= 2) AND NOT
(!FeatureA= 3) AND (&FeatureB= 2) AND NOT (!FeatureB= 3))</Condition>
</Component> <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>(&FeatureA= 3) AND NOT (!FeatureA= 3) AND
(&FeatureB= 2) AND NOT (!FeatureB= 3)</Condition> </Component>
<Component Id="Comp_LocationC" DiskId="1"
Guid="F37D6179-A6B8-4C50-9F40-B06D72F4BC20"> <File
Id="F1355_OFile.xml" Name="OFile.xml" Source="..\Location C\OFile.xml/>
<Condition>(&FeatureA= 2) AND NOT (!FeatureA= 3) AND
(&FeatureB= 3) AND NOT (!FeatureB= 3)</Condition> </Component>
The first condition is when the user first time installs the software, both
FeatureA and FeatureB are chosen or none of FeatureA and FeatureB is chosen.
Then ..\Location A\OFile.xml file will be installed. The second condition is
when the user first time installs the software, FeatureA is chosen and FeatureB
is not chosen. The ..\Location B\OFile.xml file will be installed. The third
condition is when the user first time installs the software, FeatureA is not
chosen or FeatureB is chosen. The ..\Location C\OFile.xml file will be
installed. However, none of the above condition works. The OFile.xml never
gets installed. Does anyone know why? Please help if anyone has some idea.
Thanks in advance. Kai
_________________________________________________________________
Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn
how.
hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008
-------------------------------------------------------------------------
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