如何在“RunProgram”之前或之后运行exe来自 config.txt 上的 7zip sfx 文件设置?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在“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.