View Full Version : Changing environment variable within build
kilroy55
12-09-2014, 11:01 AM
I would like to toggle an environment variable's value in the middle of my visual build file... I tried macros and a direct set command, neither seem to work...
What's the trick to getting this to work in Visual Build? Is this even allowed?
kinook
12-09-2014, 07:21 PM
To update an environment variable within a build, use the Add to environment variables when calling external programs option of the Set Macro action (see the attached sample).
http://www.kinook.com/VisBuildPro/Manual/setmacroaction.htm
Or to call a batch file that modified variables and have those changes take effect for a program that is called, use the Command to run before main command option on the Advanced tab of Run Program and derived actions.
http://www.kinook.com/VisBuildPro/Manual/programadvancedtab.htm
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.