如何在“RunProgram”之前或之后运行exe来自 config.txt 上的 7zip sfx 文件设置?

发布于 2024-09-28 12:48:36 字数 258 浏览 1 评论 0原文

我正在使用 7zip 来打包安装(我使用 7z 因为我需要它在 Linux 和 Windows 中工作)。

从我读到的内容来看,config.txt 文件可以包含以下内容:

;!@Install@!UTF-8!
RunProgram="Installer.exe"
;!@InstallEnd@!

但是,如果我需要在运行 installer.exe 之前或之后运行另一个 exe 怎么办?是否可以像 NSIS 中那样?

I am using 7zip to pack an installation (im using 7z because i need it to work in linux and windows).

From what i've been reading the config.txt file can contains this:

;!@Install@!UTF-8!
RunProgram="Installer.exe"
;!@InstallEnd@!

But what if i need to run another exe before or after running installer.exe? Is it possible like it is in NSIS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

剩一世无双 2024-10-05 12:48:36

您可以在“RUNProgram”配置参数中指定另一个程序。假设它是一些 .bat 文件。程序运行时,文件已在 TEMP 位置提取。当您的 .bat 将运行时,一旦脚本完成准备工作,它就可以调用 Installer.exe。

You can specify another progrem in 'RUnProgram' config parameter. Lets say its some .bat file. At the moment program is run, files are already extracted at TEMP location. As your .bat will run then, it can call Installer.exe once script is finished preparations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文