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

Build breaks when number of files in a single component is more than 64K files.

Jump to solution

When building an Installshield MSI we are getting error

ISDEV : fatal error -1501: Could not compress "IS\MSI\image\site\StormsPackages\Storms.Docs\main-es2015.bebfbcb1c2e813574ee9.js" into "IS\MSI\STARSEnterprise\RMIS\2020.1\DiskImages\DISK1\Site.cab"
 FCI Add File Failure IS\MSI\image\site\StormsPackages\Storms.Docs\main-es2015.bebfbcb1c2e813574ee9.js %s File Name is Invalid

we checked if we reduce the number of files in a component the same file gets packaged. 

We are using Installshield 2015 SP1

InstallShield (R)
Release Builder
Copyright (c) 2015 Flexera Software LLC.

All Rights Reserved.

Build started at Jun 21 2020 11:41 PM
Building Release: 2020.1

DoUpgradeAndBuildEx
DoUpgradeAndBuildExInternal
DoUpgrade
DoIsmUpgrade
GetNewFileName
spProject->Open Succeeded
InitEx
PC: 'RMIS' Rel: '2020.1'
InitCommon
BuildMediaInternal

Labels (1)
0 Kudos
(1) Solution

Hi @karunakantRKCS ,

Limits of the CAB file format

The only compressed file type supported natively by Windows Installer is the Cabinet (CAB) format. The following limits apply to this file format.

  • No one file in a CAB can exceed 2GB
  • Maximum size of all files in one folder (compressed) 2GB
  • Maximum size of a CAB file (compressed) 2GB
  • Maximum number of files in a single CAB 64K

You can avoid these limits by splitting your setup into multiple CABs, possibly up to 64K * 2GB, or by placing your application files on the distribution disk uncompressed.

These limits have been documented on the Windows Installer Team Blog.

So the solution for your problem would be splitting the CAB into multiple files since it is a limitation.

 

Hope it helps,

Thanks,

Jenifer

View solution in original post

(3) Replies
shunt
Revenera Moderator Revenera Moderator
Revenera Moderator

There is a limit to the amount of files that a Windows Installer Package can support - more information about this and steps on how to support a large package can be found on the Microsoft website here:

https://docs.microsoft.com/en-gb/windows/win32/msi/authoring-a-large-package?

 

 

0 Kudos

Hi Shunt,

Thank you for the reply.

I see a line like this in the log file

ISDEV : warning -6651: The setup you are building contains more than 32,767 files. Automatically switching setup package to appropriate MSI schema.

so thought all the settings you mentioned got automatically changed. 

then do i still need to do the steps you have mentioned

  1. Export the table to an .idt file. For details, see Msidb.exe, Export Files, and Importing and Exporting.
  2. Edit the .idt file to change the column type from i2 to i4, or from I2 to I4.
  3. Export the _Validation table to an .idt file.
  4. Edit the .idt file to change the values in the MaxValue column of the _Validation table to accommodate the increased column widths.
  5. Import the .idt files back into the database.
  6.  

Regards,

Karuna Kant Mishra

0 Kudos

Hi @karunakantRKCS ,

Limits of the CAB file format

The only compressed file type supported natively by Windows Installer is the Cabinet (CAB) format. The following limits apply to this file format.

  • No one file in a CAB can exceed 2GB
  • Maximum size of all files in one folder (compressed) 2GB
  • Maximum size of a CAB file (compressed) 2GB
  • Maximum number of files in a single CAB 64K

You can avoid these limits by splitting your setup into multiple CABs, possibly up to 64K * 2GB, or by placing your application files on the distribution disk uncompressed.

These limits have been documented on the Windows Installer Team Blog.

So the solution for your problem would be splitting the CAB into multiple files since it is a limitation.

 

Hope it helps,

Thanks,

Jenifer