Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 7zip 打包安装(我使用 7z,因为我需要它在 linux 和 windows 中工作)。
从我一直在阅读的 config.txt 文件中可以包含以下内容:
;!@Install@!UTF-8! RunProgram="Installer.exe" ;!@InstallEnd@!
但是,如果我需要在运行 installer.exe 之前或之后运行另一个 exe 怎么办?是否有可能像在 NSIS 中一样?
您可以在“RUNProgram”配置参数中指定另一个程序。可以说它的一些 .bat 文件。在程序运行的那一刻,文件已经在 TEMP 位置提取。由于您的 .bat 将运行,它可以在脚本完成准备后调用 Installer.exe。