Ah. Figured it out. It appears that the syntax of the conditional was
incorrect. This works:

<?ifdef env.IsTfsBuildAgent ?>
  <?define SourcePath = "..\..\..\binaries" ?>
<?else ?>
  <?define SourcePath = "..\bin\$var.Configuration)" ?>
<?endif ?>

Note the absence (despite what it says elsewhere in the documentation) of
the '$(' around the env.IsTfsBuildAgent. This simple little trick makes it
possible to build on either a TFS build agent or a developer's desktop
without making any changes more complicated than adding the one single
environmental variable to the TFS build agent itself. No need to create new
build scripts or otherwise alter the workflow template.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-detect-an-environmental-variable-s-value-tp7589501p7589503.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to