Article ID: 839561 - View products that this article applies to.
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 "\path\filename" is not a valid Windows CE Setup file
This problem may occur for one of the following reasons:
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 "Applies To" section.
Programs that have more than 998 filesIf 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 "References" 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 "Cause" section.
Programs that have fewer than 999 filesIf your program uses fewer than 999 files, use short file names for all the files in the setup CAB file.
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.
For more information about how to create custom CAB files or about how to create a standard Windows CE format Setup.dll file, see the Microsoft Windows Powered Pocket PC Software Development Kit (SDK) Help documentation.
For more information about how to install CAB files by using the Wceload.exe program, visit the following Microsoft Developer Network (MSDN) Web site:
Contact us for more help
Connect with Answer Desk for expert help.