chrislake / 7zsfxmm

7-Zip sfx Modified Module
GNU Lesser General Public License v3.0
62 stars 25 forks source link

RunProgram error codes not handled #4

Open alessioarena opened 5 years ago

alessioarena commented 5 years ago

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.