简体   繁体   中英

SmartDevice CAB “is not a valid Windows CE Setup file”

(This can be considered a follow-up on my question here. )

After successfully building a CAB setup file for my handheld WCE5 device, (a Datalogic Memor laserscanner) I went on to try and install it. However, upon starting the CAB, the device throws me the following error message:

The file "\\Setup.CAB" is not a valid Windows CE Setup file

I have no idea why it's saying this, especially since I made the CAB file using VS08's "Smart Device CAB Project" template.

Is there some setting I missed while building the CAB? All that I did was add the to-be-installed-project's output and add a shortcut on the desktop with a fancy-pansy icon.

The project is targeting Windows CE as well, and deploys and debugs just fine on the Memor.

It the CAB-file compressed? There is an option called 'compress' in the Smart Device CAB Project that can be turned off.

This option can cause this error, because not every CE version can handle compressed setups.

I also got this problem with a CE 6.0 project (OS version 8.2).

Memors come in either Windows Mobile 6.1 or Windows CE 5.0 flavors.

备忘录概述

Are you sure your device uses CE and not Mobile?

A Windows Mobile device's desktop will look sort of like the screenshots below - because I can't seem to get the CE SDK installed right now (I've got too many other applications open). A Windows Mobile device can be confirmed by clicking [Start] > [Settings]:

开始设定

Go to the [System] tab and select [About]:

系统简介

On mine, you can see I'm stuck with WM5.

WM5

By contrast, a typical Windows CE device would have a screen somewhat like this image I found on Google:

WinCE的

ANOTHER UPDATE:

Is your project, perhaps, set to Windows Mobile, like shown below?

WinMobleProject

If this is a Windows CE Project, you'll need to target the Windows CE platform.

I can't install the Windows CE SDK on my machine, though. I discovered yesterday it has to be run on Windows XP.

** Friday Update **

Try creating another deployment project (you don't have to finish the Wizard), and see if you have a Windows CE option like the Target Platform like in "Step 2" pic below (I do not).

第2步

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM