How to use FreeArc in order to highly compress the

2019-04-15 22:29发布

问题:

Need to make my application as small as possible, at least half the original size. FreeArc offers a great compression but how can I make its use in Inno Setup.

回答1:

This answer has been superseded by Inno Setup - How to add cancel button to decompressing page? that uses unarc.dll instead of driving the console Arc.exe.


For a complete code that uses the solution outlined below (using console Arc.exe), see How to add .arc decompression to Inno Setup?


The original response:

A generic way to use external compression utility with Inno Setup:

  • compress your files first with FreeArc
  • compile the Inno Setup installer with the compressed file
  • embed the FreeArc to the installer
  • make the installer extract the compressed file and FreeArc to a temporary location and extract the compressed file with FreeArc

FreeArc has (had) dedicated tool for use with Inno Setup, FreeArc+Inno Setup, but its site is down atm.


Though did you try using a better compression method using Compression directive?

[Setup]
Compression=lzma2/ultra64

For a full example using RAR see:
How to create an installer using Inno Setup which extracts the contents of a .rar archive?



标签: inno-setup