创建 7-zip 安装程序包时出错 [英] Error Creating a 7-zip installer package

查看:37
本文介绍了创建 7-zip 安装程序包时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这不是问这个问题的正确地方,我很抱歉.

If this is not the correct place to ask this, I apologize.

我使用 7zip 来创建安装程序包.最近,我的电脑更新了,我无法再使用它了.我使用 Visual Studio 2010 中的 Windows Installer 创建安装包,并将其添加到名为 setup.7z 的文件中.我已确认文件已正确存档.然后我打电话给

I use 7zip to create an installer package. Recently, my computer was updated, and I can no longer get it to work. I use a Windows Installer from Visual Studio 2010 to create the installation package, which I add to a file called setup.7z. I have confirmed that the files are archived correctly. I then call

copy/b 7zsd.sfx + config.txt + setup.7z setup.exe

将所有内容打包到一个名为setup.exe"的文件中.单击此按钮将启动安装程序.

which packages everything into a single file called "setup.exe". Clicking on this would start the installer.

更新后,我仍然可以制作文件,看起来很好.但是,如果我尝试单击它,则会收到一条消息,内容为 7-Zip:不支持的方法.

After the update, I can still make the file, and it looks just fine. However, if I try to click on it, I get a message saying 7-Zip: Unsupported method.

我安装了 7-Zip 版本 18.05 (x86).老实说,我不确定我从哪里得到了 7zsd.sfx 文件,但请记住必须找到它.它没有版本控制,但最后一次修改是在 2007 年 7 月 13 日.我不知道版本是否重要,因为您不需要安装 7-Zip,因为这是一个自解压文件.但是,可能是旧版本无法解压缩由新版本压缩的内容.

I have 7-Zip version 18.05 (x86) installed. Honestly, I am not sure where I got the 7zsd.sfx file, but do remember having to hunt it down. It has no versioning, but was last modified on 7/13/2007. I don't know if the version matters, since you shouldn't need 7-Zip installed since this is a self-extracting file. However, it may be that the older version isn't able to unzip something zipped by a newer version.

推荐答案

我认为问题出在不同版本的 7zip 和 7zip.sfx 中使用.不幸的是,最近的 7zip 包中没有 SFX 文件.这是一些旧版本的 7zip_extra 的链接,其中包含 SFX 文件和 .bat 文件来创建安装程序.对我来说很好用.

I think the problem is in different versions of 7zip and 7zip.sfx used. Unfortunately SFX file is absent in most recent 7zip packages. Here is link to 7zip_extra from some old version that has both SFX file and .bat file to create the installer. Works fine for me.

这篇关于创建 7-zip 安装程序包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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