You can only specify [EMAIL PROTECTED] when the Condition is a child of a 
Fragment or a Product. 
Other than that the syntax looks right, and it should be OK to have the 
ComponentRef under the Feature.

Rob

Kevin Burton wrote:
> I suspected as much. Do you have an example of how the condition syntax
> would be? I am thinking something like:
> 
>       <Component Id="IISServicesSymbols" Guid="..." DiskId="1">
>         <Condition Message="Symbols are only included with debug.">
>           Configuration = "Debug"
>         </Condition>
>         <File Id="IISFaultContractSymbols" Name="..."
> LongName="...xxx.pdb" src=".../xxx.pdb"/>
>         ....
>        </Component>
> 
> Then under the features to install this component will be "empty" so is it
> still safe to reference it?
> 
>               <Feature Id="IISHost" ...
> ConfigurableDirectory="IISINSTALLDIR">
> ...
>                       <ComponentRef Id="IISServicesSymbols"/>
>               </Feature>
> 
> Kevin
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
> Sent: Monday, April 16, 2007 8:27 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Conditional file inclusion.
> 
> You don't.  A component is an atomic unit; you either get everything or
> nothing.  You want to put 
> the file in a separate component and condition that.
> 
> Rob
> 
> Kevin Burton wrote:
>> I want to conditionally include the symbol file (.pdb) based on a 
>> property (Configuration set to 'Release' or 'Debug'). I see that a 
>> condition can be set for a component (not a file). How do I 
>> conditionally include or exclude a file from the list of files in a 
>> component? 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
> 
> 
> -------------------------------------------------------------------------
> 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
> 
> 
> -------------------------------------------------------------------------
> 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/


-------------------------------------------------------------------------
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