This is the part I was missing "Usually WXL files are known only to light.exe, not to candle.exe, so culture can only be known long after the preprocessor is done."
I use code similar to your example currently for other items. I was more interested in being able to use WXL data in the <? if ?> statements maybe to conditionally add files based upon culture. Maybe this is a better example: <? if !(loc.CultureID) = FRCA ?> <File Id="foo" Name="foo.txt" Source="C:\data\foo.txt" /> <?endif?> But as you pointed out WXL data is not available at preprocessor time so I will continue to use environment variables. Thank you. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Determine-build-language-at-compile-time-tp5343775p5345687.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users