cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
insertcoin_gsp
Level 3

Configure maximum cab size

The maximum size for cab files is 2 GB.
When generating an installer with external cabs InstallShield splits them at 2 GB, naming them something like Feature~1.cab: 2.0 GB,
Feature~2.cab: 0.3 GB.

Is there a way to configure the maximum size of cabs that InstallShield generates? So with the above example if I was able to set the maximum size to 1.0 GB this would result in:
Feature~1.cab: 1.0 GB,
Feature~2.cab: 1.0 GB,
Feature~3.cab: 0.3 GB.

I realise I can split up the cabs by feature/component, but that's sort of an incontinent solution.

I also see there's an option for that in InstallShield 2016 Express Edition

Labels (1)
0 Kudos
(2) Replies
banna_k
Revenera
Revenera

@insertcoin_gsp :

To specify whether InstallShield should create multi-part .cab files and—if appropriate—specify the maximum .cab file size:

1. Close InstallShield.
2. Find the Settings.xml file that is installed with InstallShield. Settings.xml is installed in one of the following locations, depending on which language version of InstallShield you are using:
• English—InstallShield Program Files Folder\Support\0409
• Japanese—InstallShield Program Files Folder\Support\0411
3. Create a back-up copy of the Settings.xml file, in case you later need to revert to the original version.
4. Use a text editor or XML file editor to open the Settings.xml file.
5. Search for the <CompressedNetworkCABSize> element. It looks something like this:
<CompressedNetworkCABSize default="600"/>

6. Do one of the following:
• To specify the maximum size for .cab files, type the size in MB as the value of the default attribute. In the aforementioned example, the maximum size is 600. The value should be 2048 or less, since the maximum size of a .cab file is 2 GB (2048 MB).
The default value is 600.

• If you do not want InstallShield to create multi-part .cab files, set the value of the default attribute to -1.
7. Save the Settings.xml file.
8. Ensure that your XML code is well formed; if it is not well formed, you may have problems using InstallShield. In most cases, you can identify improperly formed XML code by opening the Settings.xml file in Internet Explorer. You should be able to expand and contract the major elements of the file; if you cannot, check the code for errors.
Whenever you build a compressed network image release for one of the applicable project types, InstallShield creates the .cab files according to the requirement that you configured in the Settings.xml file. Depending on the value that you specified in the Settings.xml file, the Media table of the .msi package lists one or more .cab files.

 

For more information : https://helpnet.flexerasoftware.com/installshield25helplib/helplibrary/SettingsXML-Cab.htm

0 Kudos

Thanks for the replay.

By default I have the following XML:
<CompressedNetworkCABSize default="600"/>

However cabs are created up to 2GB in size. Is this setting overwritten somewhere, or is it just ignored? Does this only apply to some installer types?

0 Kudos