为什么在创建SFX安装程序时7zip会忽略我的InstallPath? [英] Why does 7zip Ignore my InstallPath when making a SFX installer?

查看:186
本文介绍了为什么在创建SFX安装程序时7zip会忽略我的InstallPath?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在使用以下配置使用7zip制作SFX:

Currently, I am making a SFX with 7zip using the following config:

;!@Install@!UTF-8!
InstallPath="C:\\test"
GUIMode="2"
RunProgram="7z465.exe"
;!@InstallEnd@!

然后我将7z465.exe打包到Setup.7z中,然后在批处理文件中调用以下行:

I then package 7z465.exe into Setup.7z, and then call the following line in a batch file:

copy /b "C:\Program Files\7-Zip\7zSD.sfx" + config.txt + ".\Release\Setup.7z" .\Release\Setup.exe

当我运行生成的Setup.exe时,它会很好地提取并启动7z465.exe,但它仍会为当前用户而不是C:\test提取到某个7zip temp文件夹中!

When I run the resulting Setup.exe, It extracts fine and launches the 7z465.exe as well, but it is still extracting to some 7zip temp folder for the current user and not C:\test!

以管理员身份运行似乎也没有任何作用。

Running as administrator seems to have no effect either.

有人知道为什么会这样吗?

Anyone have any idea why this is happening?

推荐答案

使用来自 http://的修改后的7zsd.sfx 7zsfx.solta.ru 。 InstallPath仅适用于修改后的程序包。

Use modified 7zsd.sfx from http://7zsfx.solta.ru. InstallPath only works with the modified package.

这篇关于为什么在创建SFX安装程序时7zip会忽略我的InstallPath?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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