Inno Setup-后处理 [英] Inno Setup - Post Processing
问题描述
我想构建由Inno Setup生成的安装文件的MD5校验和文件.我已经找到了预处理器,并且想知道一旦创建了"setup"输出文件,是否可以进行某种处理. 它需要在编译时运行,而不是在安装过程中运行.
I would like to build an MD5 checksum file of the setup file generated by Inno Setup. I've found the pre-processor and was wondering if there is a way to do some processing once the 'setup' output file has been created. It needs to run at the compile time not during installation.
推荐答案
如果要自动构建,只需使用批处理文件(或任何其他脚本)中的命令行编译器.
If you are automating your build, just use command-line compiler from a batch file (or any other script).
下一步,运行工具来计算校验和.
"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Example1.iss
certutil -hashFile mysetup.exe MD5
或者,使用 Inno Script Studio (Inno Setup的克隆)
Alternatively, use Inno Script Studio (clone of Inno Setup).
它具有[PostCompile]
部分.在其GUI中,它是后期编译步骤".
It has [PostCompile]
section. In its GUI, it's "Post Compilation Steps".
这篇关于Inno Setup-后处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!