Search code examples
zipcompressioninno-setuparchive

Create ZIP files from within Inno Setup


I want to ZIP some log files generated by inner setups (dependencies) so they become a single file that is easy to send back for support purposes.

Is there an easy way to do this using Inno Setup?

If everything else fails, I can always use some minimal ZIP.EXE utility to achieve this but I am not sure which would be legal to embed and use. I am hoping to find a built-in solution if possible but I'd settle for an external app.

Actually, I am not looking for ZIP format in particular. Any archive that wraps multiple files together (and possibly compresses them) is ideal.


Solution

  • There's no built-in archiving support in Inno Setup.

    See Inno Setup – zip local files prior to an update


    If you do not look for a particular archive format, use Microsoft's .cab format. There's a command-line tool to create these in all modern versions of Windows (XP and up at least), the makecab.

    So you do not need to distribute your own archiving binary.