It looks like you're confusing run-time and compile-time conditions. Properties used like [this] and the Condition element are used when the package is being installed. If you want to make changes to how the package is built in the first place you need to use the preprocessor.
Assuming that you want to build a debug and release version, you want to put something like this around your Debug only Component and Feature elements: <?if $(var.Configuration) = Debug ?> ... WiX ... <? endif ?> You also want to change bin\[Configuration]\file.xxx to bin\$(var.Configuration)\file.xxx and then specify -dConfiguration=Debug on the command line to candle. I hope that helps, Rob Kevin Burton wrote: > It seems that the Configuration property is not getting set. One indication > of this is that the files under the components throws an error that > bin\[Configuration]\file.xxx is not found. Also I get an error that the .pdb > files under the conditioned component is not found even thou the > Configuration property should be "Release" and it should not be looking for > these files. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett > Sent: Monday, April 16, 2007 10:16 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Conditional file inclusion. > > 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 > > > ------------------------------------------------------------------------- > 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