2

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.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129
  • I use ZIP format. Created a zip dll in Delphi. See http://stackoverflow.com/questions/19832128/inno-setup-zip-local-files-prior-to-an-update?lq=1 for details – Lars Nov 30 '15 at 16:29

1 Answers1

3

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.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
  • This sounds perfect! I thought of CAB myself but I wasn't sure if there was a consistent way to use it across Windows versions. Thanks! – wpfwannabe Nov 30 '15 at 14:48