Installer Size / Compression Level - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

TVNST
Posts: 7
Joined: Tue Mar 27, 2012 11:57 am

Installer Size / Compression Level

I'm currently trying out the trial version of Advanced Installer and I've a question about the installer size.
I've created a professional type installer in order to use LZMA compression and added the files we need for our software product.
Our current installer is NSIS with a 7-Zip plugin for reduced installer size.

According to the compression info, LZMA is used by 7-Zip, therefore I'd expect similar compression results.
However, our old installer has a size of 4,72 MB, but the adavanced installer with the same files only gets to 5,58 MB with maximum LZMA compression.
If I use 7zip directly to compress the included files directly with ultra level I get 4,18 MB.

I'm aware that there's additional info files, logos, etc. but an increase of 1.4 MB seems rather large to me. (I use default theme without changes)
Therefore I'm curious to know if the LZMA compression isn't as good as the one from 7-Zip directly, or if there are other reasons for the larger file size like msi / cab file conventions etc.
Any possibilities to reduce the installer size even further?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Installer Size / Compression Level

Hi,

Have you tried different compression levels for the package. Our default is set to an average value, but you can use a higher compression if you choose for example "Best" as compression level.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TVNST
Posts: 7
Joined: Tue Mar 27, 2012 11:57 am

Re: Installer Size / Compression Level

Yes, of course. The original 7-zip compression seems a lot more efficient than the built in from advanced installer.
However, there's maybe an elegant workaround for that. There's also an option to create just an msi installer and place the uncompressed files in the same folder.
This folder can then be used to create a self-extracting archive directly with 7-Zip.

The only thing I still don't understand is that the advanced installer always creates an exe file in addition to the msi file.
This exe file seems to be obsolete since I can delete it and still run the msi installer without problems.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installer Size / Compression Level

Hello,

You cannot use any other LZMA engine. Advanced Installer must perform the compression from inside.

LZMA compression cannot exist outside the bootstrapper. If you select LZMA, the "Create EXE setup file" option from the Bootstrapper tab will be automatically enabled. You can then choose to leave the files and .MSI outside or inside the .EXE.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installer Size / Compression Level

This is related to the fact that we are using LZMA 2 method in our inside engine. You can test this by selecting this compression method in 7-Zip. You are most probably using LZMA 1 in 7-Zip.

The difference between LZMA and LZMA 2 is that the first is slower but more efficient and the second (used by Advanced Installer) is faster but with a lower compression level.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TVNST
Posts: 7
Joined: Tue Mar 27, 2012 11:57 am

Re: Installer Size / Compression Level

Sorry for the late reply, I was two weeks in holiday... :-)

I also tried 7Zip with LZMA2, but didn't see any difference in size.
No idea how they do it, but the 7Zip guys just get it almost 1,5 MB smaller regardless of LZMA1 or LZMA2.
However, I also tried InstallAware which according to their information has superior compression, and it ended up with 7,5 MB on max compression which is 2 MB more than AdvancedInstaller. What a joke!!!

Creating a self extracting archive from an uncompressed AdvancedInstaller installer seems to be the best solution so far.
However, I'm still trying to figure out if it's possible to forward command line parameters from the archive exe to the installer exe.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installer Size / Compression Level

Hello,
However, I'm still trying to figure out if it's possible to forward command line parameters from the archive exe to the installer exe.
Here's the bootstrapper command line article to help you with this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”