7zs.sfx 不支持的方法 [英] 7zs.sfx unsupported method

查看:35
本文介绍了7zs.sfx 不支持的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有设置项目,我需要对他进行 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% %OutputSetup*"

效果很好.

然后我 sfx 7z 文件:

then I sfx the 7z file :

copy /b %path7zs% + "%~dp0% %config.txt" + "%~dp0% %Setup.7z" "%~dp0% %     
OutputSetupMySetup.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

推荐答案

使用 7zsd.sfx 而不是 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 +corruptedExe fixedExe.exe

这篇关于7zs.sfx 不支持的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆