本文介绍了7zs.sfx不支持的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个需要对他进行特殊处理的安装项目。
I have setup project that I need to sfx him .
首先我压缩.msi和.exe文件:
first I zip the .msi and .exe files :
%path7zip% a "%~dp0% %setup.7z" "%~dp0% %Output\Setup\*"
工作正常。
然后我将7z文件作为sfx文件:
then I sfx the 7z file :
copy /b %path7zs% + "%~dp0% %config.txt" + "%~dp0% %Setup.7z" "%~dp0% %
Output\Setup\MySetup.exe"
我的配置文件为:
;!@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@!
我得到了MySetup.exe文件,但是当我尝试打开它时,我得到了:
7-zip:不支持的方法。
有什么想法吗?
谢谢
I get the MySetup.exe file but when I try to open it I get :7-zip: unsupported method.Any ideas?Thank you
推荐答案
使用而不是7zs.sfx
Use 7zsd.sfx instead of 7zs.sfx
您还可以使用此文件来修复显示错误的exe文件不受支持的方法,而无需添加config.txt,例如:
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 + invalidedExe fixedExe.exe
这篇关于7zs.sfx不支持的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!