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

Article translations Article translations
Article ID: 839561 - View products that this article applies to.
Expand all | Collapse all

On This Page

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 "\path\filename" 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 "Applies To" 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 "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 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.

REFERENCES

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:
http://msdn2.microsoft.com/en-us/library/aa459001.aspx

Properties

Article ID: 839561 - Last Review: January 18, 2007 - Revision: 3.3
APPLIES TO
  • Microsoft Windows Mobile 2003 software for Pocket PC Standard Edition
  • Microsoft Pocket PC 2002 Software Standard Edition
  • Microsoft Windows Powered Pocket PC 2000
Keywords: 
kbprb KB839561

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com