Setting an env. var. from custom action step error...
Hi!
I'm building a custom step action. Is this step, I set a macro that I want to be set as an environment variable when calling external programs. So, what I'm doing is this in the custom action :
Set objMacroColl = objAppl.Macros(VisBuildSvr.MacroTypeEnum.vbldMacro Temporary)
objMacroColl.Add MY_VARIABLE, "the value of variable", , , True
Every thing is good except that when I call an external program, the program doesn't see the variable I set!
PS : I tried setting a variable from a "SetMacro" action and checked the "add to env. var. ..." and it worked!
Please, tell what's wrong!
|