为什么 7zip 在制作 SFX 安装程序时会忽略我的 InstallPath? [英] Why does 7zip Ignore my InstallPath when making a SFX installer?
问题描述
目前,我正在使用以下配置制作带有 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 Files7-Zip7zSD.sfx" + config.txt + ".ReleaseSetup.7z" .ReleaseSetup.exe
当我运行生成的 Setup.exe 时,它可以正常提取并启动 7z465.exe,但它仍在为当前用户提取一些 7zip 临时文件夹,而不是 C: est!
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: est!
以管理员身份运行似乎也没有效果.
Running as administrator seems to have no effect either.
有人知道为什么会这样吗?
Anyone have any idea why this is happening?
推荐答案
使用来自 http://7zsfx.solta.ru的修改后的 7zsd.sfx一>.InstallPath 仅适用于修改后的包.
Use modified 7zsd.sfx from http://7zsfx.solta.ru. InstallPath only works with the modified package.
这篇关于为什么 7zip 在制作 SFX 安装程序时会忽略我的 InstallPath?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!