=============================================================
标题:打包Windows CE应用程序(一)
日期:2011.4.29
姓名:朱铭雷
=============================================================
在VS IDE中,可以直接建立一个“智能设备CAB项目”,然后就是修改一下属性,添加依赖文件,添加快捷方式和注册表,总之比较简单。现在来使用一种最原始的方法,自己编写inf文件,然后命令行调用cabwiz.exe进行打包。其实在实际工作中,不必要这么做,完全是给自己找麻烦。但这次俺要看看MSDN文档,研究些细枝末节,知其然而知其所以然。
inf文件的格式是什么样的?包含什么?如何写?msdn中有一个CAB Wizard进行了全面细致的讲解。首先看inf文件包含写什么:
Section |
Required |
Description |
Yes |
Describes the creator and version of the application. |
|
No |
Describes the platform version that the application is targeted for. |
|
Yes |
Contains string substitutions for application and directory names. |
|
No |
Contains string definitions for one or more strings. |
|