You receive the "Setup failed" error message when you use a very large setup CAB file to install a program on a Pocket PC device (839561)
The information in this article applies to:
- Microsoft Windows Powered Pocket PC 2003
- Microsoft Windows Powered Pocket PC 2002
- Microsoft Windows Powered Pocket PC 2000
SYMPTOMSIf you try to install a program on a 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 CAUSEThis 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 Windows CE format setup DLL is not packaged in the CAB file.
- If the setup CAB file
contains fewer than 999 files, the CAB file might be limited to 32 kilobytes (KB). Digital audio tape
(DAT) files are limited to 32 KB if the files in the CAB file have very long file names.
WORKAROUNDTo 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 each of 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. STATUSMicrosoft knows about this problem and is working
toward fixing this problem in a future release.MORE INFORMATIONMicrosoft does not recommend that you use many hundreds of files with 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, about how to create a standard Windows CE format Setup.dll file, or about how to install CAB files by using the Wceload.exe program, see the Pocket PC SDK Help documentation, or visit the following Microsoft MSDN
Web sites:
Modification Type: | Minor | Last Reviewed: | 6/3/2004 |
---|
Keywords: | kbprb KB839561 kbAudDeveloper kbAudOEM kbAudITPRO |
---|
|