I created two encrypted SFX archive (https://dl.dropboxusercontent.com/u/35142695/test_sl2_130508_09-43.7z)
1 with the original SFX module
2 with the modified SFX module
Run a batch file unpacking these SFX:
7z x "%~1" -oTemp -y -r
1 request a password, click OK, receive a return code 2 and no files in the folder unpack (Temp)
2 request a password, click OK, receive a return code 0 and the resource files in the folder unpack (Temp)
1 why is this happening?
2 how to get rid of extracting resources, as I do not need?
3 how to get a return code of 2 in the second case because it will be the right decision?
I didn't check your archives.
Does 7z reside inside EXE file resources in second case?
In that case 7-Zip opens PE and then tries to open 7z inside. In case of error, it shows PE sections.
Only -t7z can help in that case.
Speaking about the resources, I mean it was PE sections.
Switch -t7z helped, thank you.