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