Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5142335
  • 博文数量: 1696
  • 博客积分: 10870
  • 博客等级: 上将
  • 技术积分: 18357
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 15:16
文章分类
文章存档

2017年(1)

2016年(1)

2015年(1)

2013年(1)

2012年(43)

2011年(17)

2010年(828)

2009年(568)

2008年(185)

2007年(51)

分类: 嵌入式

2010-09-21 11:20:38

If you have bought Christmas presents for their loved ones already, so get there mostly to the rather unpleasant part: the packaging.
However, this applies also for applications to be installed on a mobile device. There are the CAB file format.
 
To create an installer file, let's assume that we have stored the files to be packaged under c: \ Hello World.
The files that must exist there, the Helloworld.exe, which is to be installed, and the HelloWorld.inf file that retains the information for the CabWizard to create a CAB file.

Here's to the contents of the INF file. Here, the programming language has no relevance this time:
[SOURCE FILE]
Name = CHelloWorld.cab
Path = C: \ Hello World \ HelloWorld.cab
AllowUninstall = TRUE
[Version]
Signature = "$ Chicago $"
CESignature = "$ Windows CE $"
Provider = "CompanyName"
[CEStrings]
AppName = "Hello World"
InstallDir = "% CE1% \ CHelloWorld"
[CEDevice]
ProcessorType = 0
VersionMin = 0.0
VersionMax = 0.0
BuildMin = 0
BuildMax = 0
[SourceDisksFiles Names]
1 =, Source1,,
[SourceDisksFiles]
Helloworld.exe "= 1
[CopyFiles1]
Helloworld.exe ",,, 0x00000001
[DestinationDirs]
CopyFiles1 = 0, "%% CE1 \ Hello World"
[Default Install]
CopyFiles = CopyFiles1
 
 
Is now on the command line the command "c: \ Program Files \ Microsoft Visual Studio 9.0 \ Smart Devices \ sdk \ SDKTools \ cabwiz.exe" "Company HelloWorld2.inf executed" (path of course, is adapted as regards its characteristics), it is found in the corresponding target folder, the CAB installation file again.
For more information on CAB Wizard, click here: %% 28VS.71 29.aspx

Patrick & Peter
阅读(858) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~