7zs.sfx unsupported method

瘦欲@ 提交于 2019-12-01 08:20:31

问题


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\*"

that work fine .

then I sfx the 7z file :

copy /b %path7zs% + "%~dp0% %config.txt" + "%~dp0% %Setup.7z" "%~dp0% %     
Output\Setup\MySetup.exe"

my config file is :

;!@Install@!UTF-8!
Title="my title"
Progress="no"
GUIFlags=""
OverwriteMode="0"
InstallPath="%TEMP%"
ExtractPathText="Select extraction path"
ExtractPathTitle="my title"
ExtractTitle="Extracting"
ExtractDialogText=""
ExtractCancelText="Abort"
RunProgram="\"%%T\\setup.exe\""
;!@InstallEnd@!

I get the MySetup.exe file but when I try to open it I get : 7-zip: unsupported method. Any ideas? Thank you


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/36982394/7zs-sfx-unsupported-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!