Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best compression settings in Inno Setup compiler

Tags:

inno-setup

What are the best settings for the smallest file size output?

enter image description here

That can equal or surpass this setting in FreArc

enter image description here

like image 883
DDoS Avatar asked Nov 06 '16 08:11

DDoS


People also ask

How do I set up an inno compiler?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.

What is Suppressmsgboxes?

/SUPPRESSMSGBOXESInstructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' or '/VERYSILENT'. The default response in situations where there's a choice is: Yes in a 'Keep newer file? ' situation.

What language is Inno Setup?

It defines two languages: English, based on the standard Default. isl file, and Dutch, based on a third-party translation. The internal name of the language, which you can set to anything you like.

Is Inno Setup free?

Inno Setup is a free installer for Windows programs by Jordan Russell and Martijn Laan.


1 Answers

For the best compression use:

[Setup]
SolidCompression=yes
Compression=lzma2/ultra64
LZMAUseSeparateProcess=yes
LZMADictionarySize=1048576
LZMANumFastBytes=273
  • Use defaults for other compression-related directives.
  • Run the compiler on x64 system.
  • With the SolidCompression, it helps, if you order files in the [Files] section by an extension and similarity. Though the solid compression is not recommended for huge installs.
  • You can use LZMANumBlockThreads to speed up the compression.

With this settings, you will need up to 11 GB of memory on the machine that runs the compiler; and up to 1 GB of memory on the system that runs the installer.

For details, refer to the Compression directive documentation.


Though I'm not sure, if you can match FreeArc even with this settings.

If you want to use FreeArc compression, use unarc.dll.


Note that ISTools does not allow the lzma2, as that was introduced in the Inno Setup 5.3.9. Always use the latest version of Inno Setup.

like image 104
Martin Prikryl Avatar answered Oct 24 '22 09:10

Martin Prikryl