7zsfxmm icon indicating copy to clipboard operation
7zsfxmm copied to clipboard

RunProgram error codes not handled

Open alessioarena opened this issue 6 years ago • 0 comments

I built a SFX using 7zip and the SFXMod. This successfully extracts files and runs the RunProgram. However it looks like it is completely ignoring the return code of the RunProgram and spawning a FinishMessage instead of the expected ErrorMessage.

Is this the correct behaviour? I could not find any explicit documentation around that, but many forum posts mention that 7zip SFX are designed to intercept and handle the return codes

The RunProgram is a batch script calling a python script using a specific Python version. The python script returns 2 if fails, and the batch script does the same.

alessioarena avatar Oct 11 '18 03:10 alessioarena