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) |