MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: 1327 - Invalid Drive: [2][Next]: 1606 - Could not access network location [2]
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Windows Installer FAQ (the basics)->Return Codes and Error Codes or Text->Error Codes->1335 - The cabinet file '[2]' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package

1335 - The cabinet file '[2]' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package

If you try to install a file into a long path and this is too long for your filesystem then Windows Installer will fail to create the file and incorrectly point at a corrupt cab file as the reason.

I have used the following batch file to reproduce this problem on a known "good" msi:

@setlocal
@set INSTALLDIR=c:\aaaa\very\longgggg\pathxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxNowTooLong
@set INSTALLDIR=c:\aaaa\very\longgggg\pathxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@set        msi=out\TryMe.MM\MSI\TryMe.msi
@set InstallHow=/I
msiexec.exe %InstallHow% "%msi%" ALLUSERS=1 /l*v Install.log.txt INSTALLDIR="%INSTALLDIR%"

A verbose log contained these messages:

MSI (s) (84:0C) [17:35:02:484]: Note: 1: 2318 2: C:\aaaa\very\longgggg\pathxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\TryMe.MM
MSI (s) (84:0C) [17:35:02:484]: Note: 1: 1335 2: _MAKEMSI_Cabs.MM01.cab

This implies that all sorts of file creation errors could perhaps also produce this message. The "2318" message (file not found) would appear to confirm this.

I have noticed that if you make the directory longer still Windows Installer will report the path as too long (1320).


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: 1327 - Invalid Drive: [2][Next]: 1606 - Could not access network location [2]


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Friday October 13 2017 at 2:08pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.