When delivering any software package containing a batch file, the result is always "Exit code 1 indicates possible error", even though the batch file runs fine when tested locally. The problem happens even with the most trivial batch files, that are verified not to contain any syntax errors, or reasons for exiting with code 1.
Client Automation - All Versions
The solution is to delete the AutoRun value from the Command Processor registry key. Once the value is removed, Software Delivery jobs containing batch files will be able to execute successfully.