I was going to say, in the step's vbld_StepDone script event, do something like this:
Code:
Sub vbld_StepDone()
' get the exit code of the program
exitCode = CLng(Application.Macros(vbldMacroAll)("RUNPROGRAM_EXITCODE").Value)
' treat anything but 7159 as success
If exitCode <> 7159 Then Step.BuildStatus = vbldStepStatSucceeded
End Sub
https://kinook.com/VisBuildPro/Manual/scriptevents.htm
https://kinook.com/VisBuildPro/Manual/scripteditor.htm
https://kinook.com/VisBuildPro/Manua...gramaction.htm
But that won't fail the step without retry for other non-zero exit codes.
I think you would need to roll your own retry using the Loop action.