I'm trying to create a simple installer which includes the entire directory tree. The directory has about 48000 files, 9400 folders, 3.38GB total in size. My project just has one component which points to the top-level directory. The installbuild reports a "Fatal Error in Installer" - "unable to alloc 547138217 bytes".
Initially I used a machine that has 8GB ram with 4GB available. Later I used a machine that has 73GB ram with 63GB available, but got the same error, and almost the same number bytes (on 8GB machine, it says "unable to alloc 547083421 bytes".
Is there a limitation with InstallBuilder as how many files/folders it can build? I'm using BitRock InstallBuilder for Qt 8.2.0 (Professional evaluation version)
asked 12 May '12, 04:00
The limit for output size of an installer is 2GB. For some platforms (such as Windows), this is the maximum file size for a binary file, so in general it is not a good idea to create native installers that are more than 2GB in size.
What you can do is use CDROM builds, where the installer binaries do not contain payload and all the files to be distributed can be packed in a single
You can find more information in CDROM Installers section of InstallBuilder User Guide.
Another alternative is to use downloadable components - since their contents is also not included in the installer, you can create some or all of the content downloadable. This would cause the installer binary to be smaller (i.e. below 2GB) and allow things such as optional content to be downloadable. It is documented in Downloadable Components section of InstallBuilder User Guide.
Choosing between CDROM, downloadable components or using both solutions depends on how your customers receive your application - CDROM mode is better for shipping on a physical media (i.e. CD, DVD Blu-Ray disks or USB drives), downloadable components are more natural for applications that are downloaded.
answered 14 May '12, 05:07