I have in my package three directories of document files. The installer file size is ~1.9 GB. I zipped these three directories into three files included them in the package and excluded the three directories from the package. I used 2 methods of compression:
With the first option the size of the installer file reached to ~2.3 GB With the second option the size of the installer file reached to ~2.1 GB
The method compression which I use for my package is LZMA and I wonder why the size of the package with the zipped file is larger then the original package with the directories. I assumed that bitrock might not compress files with zip extension so I rename the file to .dat.
Is bitrock have the ability to compress zipped file (with or without compression as described) by LZMA? Is there any way to compress these directories into a zip file and still not exceed 2 GB ?
Thank You, Ronen
asked 09 Sep '13, 06:55
InstallBuilder contains logic for optimizing large number of small files, which is why not using zip compression makes the installer smaller.
InstallBuilder compresses the ZIP file regularly, but unfortunately when compressing the zip file, these optimizations are not done - which may account for the difference.
Unfortunately it may not be possible to create an installer under 2GB that would ship the zip files.
answered 09 Sep '13, 11:01
They involve grouping by file name, looking for same large chunks of files and other processing we apply when adding files to installer.
Unfortunately it is not possible to do the same when packing to zip file. Only thing that may apply is to try changing order of files when adding them to zip file - i.e. grouping by extension or file type - pack all text files, then pack all images, then pack all *.class files. You can do this by running
Could you provide more details on your use case? Why do the files have to be zipped? Is it a Java application and those are jar/war/ear files?
answered 10 Sep '13, 05:59