Either
1) In the step's vbld_StepDone script event, store the value like so:
Code:
vbld_TempMacros.Add "TEMP_EXIT_CODE", vbld_TempMacro("RUNPROGRAM_EXITCODE").Value
http://www.kinook.com/VisBuildPro/Ma...riptevents.htm
http://www.kinook.com/VisBuildPro/Ma...gramaction.htm
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm
or
2) Add a Set Macro step following the step that runs the program and set a temp macro's value to %RUNPROGRAM_EXITCODE%
http://www.kinook.com/VisBuildPro/Ma...acroaction.htm