昨天第一次为自己的windows mobile程序制作CAB安装包,但是在生成过程中,却出现了这样一个问题:

编译完成 -- 0 个错误,0 个警告
time -> G:\WindowsMobile\time\time\bin\Debug\time.exe
------ 正在启动项目“SmartDeviceCab1”的预生成验证 ------ 
------ 已完成项目“SmartDeviceCab1”的预生成验证 ------
------ 已启动生成: 项目: SmartDeviceCab1, 配置: Debug ------
正在生成文件“G:\WindowsMobile\time\SmartDeviceCab1\Debug\SmartDeviceCab1.cab”...

"C:\Program Files\Microsoft Visual Studio 8\smartdevices\sdk\sdktools\cabwiz.exe" "G:\WindowsMobile\time\SmartDeviceCab1\Debug\SmartDeviceCab1.inf" /dest "G:\WindowsMobile\time\SmartDeviceCab1\Debug\" /err CabWiz.log

Windows CE CAB Wizard

Warning: Section [RegKeys] has no data
Warning: Section [DefaultInstall] key "AddReg" - there are no section entries to process
Error: The INF file contains Unicode characters that could not be converted correctly to ANSI

错误: Windows CE CAB 向导遇到了错误。有关更多信息,请参阅输出窗口。
========== 生成: 1 成功或最新,1 失败,0 被跳过 ==========

生成主文件成功,但在生成CAB安装文件的时候,却提示错误。在网上找了整整一个下午,看到网友遇到此类问题很多,整整不下百条,都是这种问题。也有一部分解决方法,但用这些方法我怎么也发布不了。还是出现这种错误!

后来,在家经过一个小时的反复研究,终于成功制作CAB文件。只要记住这些要点,这个问题一定可以解决。

要记住的两点就是:

1、在部署的安装包项目的属性中,一定要把“manufacturer”(制造商)项填写成英文或数字,不能为中文。此时的“属性”不是选中项目后右键中的属性,而中选中项目后,按F4键出现的发生窗口。
把其中的manufacturer项的值改为非中文。

2、因为制作的安装包程序有“快捷方式”,所以在“文件系统”窗口中把“快捷方式”的名称也要改为非中文。即可!OK,成功!

Error: The INF file contains Unicode characters that could not be converted correctly的更多相关文章

  1. Caffe RPN :error C2220: warning treated as error - no 'object' file generated

    在 caffe里面添加rpn_layer.cpp之后,总是出现 error C2220: warning treated as error - no 'object' file generated 这 ...

  2. error C2220: warning treated as error - no 'object' file generated warning C4819: The file contains a character that cannot be represented in the current code page (936).

    用Visual Studio2015 编译时,遇到如下编译错误: error C2220: warning treated as error - no 'object' file generated ...

  3. 安卓开发error opening trace file: No such file or directory (2)报错原因

    error opening trace file: No such file or directory (2) 这个问题的出现是因为运行的测试机android系统版本和项目api不一致导致. 改成一样 ...

  4. error in config file "/etc/rabbitmq/rabbitmq.config"

    记录一次RabbitMQ配置文件配置错误 error信息: dill@ubuntu-vm:/usr/share/doc/rabbitmq-server$ sudo /usr/lib/rabbitmq/ ...

  5. 怎样处理“error C2220: warning treated as error - no object file generated”错误

    最近用VS2010 编译ceflib开源库是出现"怎样处理"error C2220: warning treated as error - no object file gener ...

  6. Spring mvc 中使用ftl引用共通文件出错 FreeMarker template error: Error reading included file "/WEB-INF/ftl/common/errormessage.ftl"

    初次接触spring mvc,想做一个小的练习项目,结果在ftl文件中引用其它的共通ftl文件时出错.

  7. 解决clang: error: no such file or directory: such file or directory:的问题

    一,详细问题描述 clang: error: no such file or directory: 'xxx/src/GGBaCollectionViewCell.m' clang: error: n ...

  8. LINUX软件./configure 配置出现:configure: error: newly created file is older than distributed files!

    当在安装tar源码包的时候出现以下报错如何解决? [root@jieniruyan gst-fluendo-mp3-]# ./configurechecking for a BSD-compatibl ...

  9. git报错 error: cannot stat ‘file’: Permission denied

    切换分支时报错: error: cannot stat ‘file’: Permission denied 解决方法:退出编辑器.浏览器.资源管理器等,然后再切换就可以了.

随机推荐

  1. 将文本(lrc,txt)文件转换成UTF-8格式

    UTF-8是UNICODE的一种变长字符编码又称万国码,由Ken Thompson于1992年创建.现在已经标准化为RFC 3629.UTF-8用1到6个字节编码UNICODE字符.用在网页上可以同一 ...

  2. Python写日志

    import logging import ResultFolder logger = logging.getLogger() logger.setLevel(logging.DEBUG) def C ...

  3. FCN 32分析:

    FCN 32s

  4. C# this调用构造函数及析构函数

    using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace trai ...

  5. Linux - 系统资源

    查看剩余内存 free -m #-/+ buffers/cache: #6458M为真实使用内存 1649M为真实剩余内存(剩余内存+缓存+缓冲器) #linux会利用所有的剩余内存作为缓存,所以要保 ...

  6. CNN可解释

    1 http://bindog.github.io/blog/2018/02/10/model-explanation/ http://www.sohu.com/a/216216094_473283 ...

  7. Android五种数据存储方式

    android 五种数据存储 :SharePreferences.SQLite.Contert Provider.File.网络存储 Android系统提供了四种存储数据方式.分别为:SharePre ...

  8. asp.net动态解析用户控件(UserControl)

    模块化的时候需要用到: #region asp.net解析用户控件 /// <summary> /// asp.net 解析用户控件 /// </summary> /// &l ...

  9. python各种post上传文件

    1.带证书上传文件 filename = '/tmp/test.cert'hash_v = 'assumethisisahash' #这是一种流式上传的方式with open(filename, 'r ...

  10. git强制覆盖更新

    1.选择项目,右键选择Team,选择Team里面的Reset. 2.点击Reset后弹出Reset窗口,选择Hard选项,这样就会把远端的项目完全拉下来覆盖本地,本地没有的文件也会被创建,点击确定.