简体   繁体   English

SmartDevice CAB“不是有效的Windows CE安装文件”

[英]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. 在为手持式WCE5设备成功构建了CAB设置文件(Datalogic Memor激光扫描仪)之后,我继续尝试安装它。 However, upon starting the CAB, the device throws me the following error message: 但是,启动CAB时,设备将向我抛出以下错误消息:

The file "\\Setup.CAB" is not a valid Windows CE Setup file 文件“ \\ Setup.CAB”不是有效的Windows CE安装文件

I have no idea why it's saying this, especially since I made the CAB file using VS08's "Smart Device CAB Project" template. 我不知道为什么要这么说,尤其是因为我使用VS08的“智能设备CAB项目”模板制作了CAB文件。

Is there some setting I missed while building the CAB? 构建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. 该项目也以Windows CE为目标,并且可以在Memor上很好地进行部署调试。

It the CAB-file compressed? 它压缩了CAB文件吗? There is an option called 'compress' in the Smart Device CAB Project that can be turned off. 智能设备CAB项目中有一个名为“ compress”的选项可以关闭。

This option can cause this error, because not every CE version can handle compressed setups. 此选项可能导致此错误,因为并非每个CE版本都可以处理压缩的设置。

I also got this problem with a CE 6.0 project (OS version 8.2). 我还遇到了一个CE 6.0项目(OS版本8.2)的问题。

Memors come in either Windows Mobile 6.1 or Windows CE 5.0 flavors. 备忘录有Windows Mobile 6.1或Windows CE 5.0两种。

备忘录概述

Are you sure your device uses CE and not Mobile? 您确定您的设备使用CE而非移动设备吗?

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). Windows Mobile设备的桌面看起来类似于下面的屏幕截图-因为我似乎无法立即安装CE SDK(我打开了太多其他应用程序)。 A Windows Mobile device can be confirmed by clicking [Start] > [Settings]: 可以通过单击[开始]> [设置]来确认Windows Mobile设备:

开始设定

Go to the [System] tab and select [About]: 转到[系统]选项卡,然后选择[关于]:

系统简介

On mine, you can see I'm stuck with WM5. 在我的网站上,您可以看到我被WM5困扰。

WM5

By contrast, a typical Windows CE device would have a screen somewhat like this image I found on Google: 相比之下,典型的Windows CE设备的屏幕有点像我在Google上找到的该图像:

WinCE的

ANOTHER UPDATE: 另一个更新:

Is your project, perhaps, set to Windows Mobile, like shown below? 您的项目是否设置为Windows Mobile,如下所示?

WinMobleProject

If this is a Windows CE Project, you'll need to target the Windows CE platform. 如果这是Windows CE项目,则需要以Windows CE平台为目标。

I can't install the Windows CE SDK on my machine, though. 但是,我无法在计算机上安装Windows CE SDK。 I discovered yesterday it has to be run on Windows XP. 我昨天发现它必须在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). 尝试创建另一个部署项目(不必完成向导),然后查看是否具有Windows CE选项(如目标平台),如下面的“步骤2”图片(我没有)。

第2步

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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