From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Condition Component or Condition
FeatureDate: Fri, 4 Apr 2008 02:24:55 +0000
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
Get in touch in an instant. Get Windows Live Messenger now.
_________________________________________________________________
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-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs