Inno Setup cannot create a zip file for you while compiling.
But you have two options how to delegate the zip creation to an external process
If you are automating complex build process, you will likely be running Inno Setup command-line
iscccompiler. So just before running it in your batch build process, run another process/software/tool to create the zip file.For some example, see:
If you really want to create the zip file on the fly, while manually building the installer in Inno Setup GUI, you can use preprocessor
ExecfunctionpreprocessorExecfunction to start an process/software/tool to create the zip file before the actual compiling begins.For some examples, see:
As for the actual zip file creation, that's not really Inno Setup question anymore. You will file lot of question about that, for example:
Batch file script to zip files