Hi,
 
When environment variable _BuildArch is not defined. The following code fails 
with "Undefined preprocessor variable '$(env._BuildArch)'". 
 
<?ifdef $(env._BuildArch)?>
   <?warning You should not see this?>
   <?if $(env._BuildArch) != null and $(env._BuildArch) = "x86" ?>
        <?define _X86_ = "yes"?>
   <?endif?>
<?endif?>
 
Actually I think I should use <if $(env._BuildArch) != null> for the first 
statement. But I got "Undefined preprocessor variable '$(env._BuildArch)'" for 
that too. 
The warning text "You should not see this" is NOT displayed, which means the 
the first statement is evaluated false. Then why is the <?if?> inside that 
<?ifdef>  is evaluated? 
 
How can I check if an environment variable is defined or not?
 
I am using Wix 3.0. Thanks for any comment or suggestion!
 
Zhisheng
_________________________________________________________________
Test your Star IQ
http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to