Hi all,
In a quite complex script, I have to know if any of the actions failed, e.g. some files must be patched but at least 1 file was not found or was not a valid candidate.

If any action failed, I have to lauch the "Smart Rollback" in order not to leave an inconsistent system.

Since I also call some .exe/.dll in my script, I'm working with a "My_Overall_Error_Counter" which triggers the "Smart Rollback" coz SB cannot know by itself if this "Run Program" action was succesful or not.

Is there a way to implement an "Increment My_Overall_Error_Counter by 1 IF any %_SB_ERRORCODE% is not 0" ?

Next challenge for Friedrich... :-)

Thanks in advance for your time,
regards André