Microsoft KB Archive/839561

= You receive the &quot;Setup failed&quot; error message when you use a very large setup CAB file to install a program on a Pocket PC device =

Article ID: 839561

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Windows Mobile 2003 software for Pocket PC Standard Edition
 * Microsoft Pocket PC 2002 Software Standard Edition
 * Microsoft Pocket PC 2002 Software Standard Edition

-



SYMPTOMS
If you try to install a program on a Microsoft Windows Powered Pocket PC device by using a very large setup CAB file, you may receive the following error message:

Setup Failed. The file &quot;\ \ &quot; is not a valid Windows CE Setup file



CAUSE
This problem may occur for one of the following reasons:
 * If the setup CAB file contains more than 998 files, the device-side installer tries to load a setup DLL. The installer tries to do this although a standard Microsoft Windows CE format setup DLL is not packaged in the CAB file.
 * The setup CAB file contains fewer than 999 files. However, the files in the CAB file have very long file names.



WORKAROUND
To work around this problem, package no more than 998 files in CAB files that are meant for installation. This limit applies to the products that are listed in the &quot;Applies To&quot; section.

Programs that have more than 998 files
If your program requires that more than 998 files are installed on the device, package some of the files in smaller CAB files, and then nest these smaller CAB files in the main setup CAB file. Use a standard Windows CE format Setup.dll file in the main setup CAB file to install the nested CAB files when you use the Wceload.exe loader program. For more information about the Wceload.exe loader program, see the &quot;References&quot; section.

Note Every CAB file has the same limit on the number of files and on the length of the file names as described in the &quot;Cause&quot; section.

Programs that have fewer than 999 files
If your program uses fewer than 999 files, use short file names for all the files in the setup CAB file.



MORE INFORMATION
We do not recommend that you use many hundreds of files in a Pocket PC program. Very large programs can cause slow installation. Additionally, performance problems or memory usage problems may occur while you run the program. Consider redesigning your program to use fewer files.

