问题描述
如果这不是问这个地方的正确地方,我表示歉意。
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安装程序包时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!