I have setup project that I need to sfx him .
first I zip the .msi and .exe files :
%path7zip% a \"%~dp0% %setup.7z\" \"%~dp0% %Output\\Setup\\*\"
captain_majid's solution worked for me. I also found in this post at SourceForge the suggestion to use -mm=lzma
when generating the 7z file, which worked as well.
Would be nice to know the difference, though.
Use 7zsd.sfx instead of 7zs.sfx
You can also use this file to fix a corrupted exe that says "unsupported method", without adding the config.txt, like that:
copy /b 7zSD.sfx + corruptedExe fixedExe.exe