gpt4 book ai didi

installation - 为什么 7zip 在制作 SFX 安装程序时会忽略我的 InstallPath?

转载 作者:行者123 更新时间:2023-12-04 11:45:14 26 4
gpt4 key购买 nike

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

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

然后我将 7z465.exe 打包到 Setup.7z 中,然后在批处理文件中调用以下行:
copy /b "C:\Program Files\7-Zip\7zSD.sfx" + config.txt + ".\Release\Setup.7z" .\Release\Setup.exe

当我运行生成的 Setup.exe 时,它​​可以正常提取并启动 7z465.exe,但它仍在为当前用户提取一些 7zip 临时文件夹,而不是 C:\test!

以管理员身份运行似乎也没有效果。

任何人都知道为什么会这样?

最佳答案

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

关于installation - 为什么 7zip 在制作 SFX 安装程序时会忽略我的 InstallPath?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2568924/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com