Inno Setup - Post Processing

2019-06-12 17:18发布

问题:

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.

回答1:

If you are automating your build, just use command-line compiler from a batch file (or any other script).

And as a next step, run a tool to calculate the checksum.

"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Example1.iss
certutil -hashFile mysetup.exe MD5

Alternatively, use Inno Script Studio (clone of Inno Setup).

It has [PostCompile] section. In its GUI, it's "Post Compilation Steps".



标签: inno-setup