Your ifdef should look like
<?ifdef Debug?>
-Brian Simoneau
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Fischer
Sent: Thursday, June 07, 2007 2:44 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Define constants not working with candle in
3.0.2921.0?
I have some code like this:
<?ifdef $(var.Debug) ?>
<?define Flavor2="Debug" ?>
<?else?>
<?define Flavor2="Release" ?>
<?endif?>
<File Id="MyExe" Name="MyExe.exe"
Source="$(var.Flavor2)\MyExe.exe" />
The command line for candle looks like:
candle.exe -dDebug -out obj\Debug\Base.wixobj -ext
..\..\..\..\v1_tools\wix\bin\WixUtilExtension.dll Base.wxs
But, I'm seeing $(var.Flavor2) evaluate to "Release". I
would've expected it to be Debug based on the -dDebug on the candle
command line.
Am I doing something wrong? Or is there possible a bug in
candle?
I've also tried "-dDebug=1", but that didn't help.
Thanks,
Kevin
________________________________
Change is good. See what's different about Windows Live Hotmail.
Check it out!
-------------------------------------------------------------------------
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