Sorry...  Should have included that to begin with - v2.0.5325.0

Thanks
Mark

-----Original Message-----
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 6:13 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] preprocessor and environment variables?

What version of the WiX toolset are you using?

-----Original Message-----
From: Mark Modrall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 14:38
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] preprocessor and environment variables?

Hi...

    I recently ran into a number of problems trying to change wix project 
behavior based on environment variable settings.  A number of the things that 
sounded intuitive to me didn't work.

    For example
<?ifdef $(env.A) ?>
<?define myVar="foo" ?>
<?else?>
<?define myVar="bar" ?>
<?endif?>
didn't work because ifdef returns false for all environment variables always 
whether they are set or not.

<?if $(env.A) ?>
<?define myVar="foo" ?>
<?else?>
<?define myVar="bar" ?>
works as long as $(env.A) is defined, but if it's not, Candle generates an 
exception.

    Is there any way to test for environment variable existence before you try 
to use it in Wix?

Thanks
Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge 
Build the coolest Linux based applications with Moblin SDK & win great prizes 
Grand prize is a trip for two to an Open Source event anywhere in the world 
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge 
Build the coolest Linux based applications with Moblin SDK & win great prizes 
Grand prize is a trip for two to an Open Source event anywhere in the world 
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to