- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Build breaks when number of files in a single component is more than 64K files.
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Export the table to an .idt file. For details, see Msidb.exe, Export Files, and Importing and Exporting.
- Edit the .idt file to change the column type from i2 to i4, or from I2 to I4.
- Export the _Validation table to an .idt file.
- Edit the .idt file to change the values in the MaxValue column of the _Validation table to accommodate the increased column widths.
- Import the .idt files back into the database.
Regards,
Karuna Kant Mishra
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)