Create a cab installation package using WinCE

Source: Internet
Author: User

1. Compile the INF file

For more information, see the appinst example of Pocket PC 2003 and the help document deploying Windows Mobile applications> how to package and distribute windows mobile applications.

Sample. inf

[Version]

Signature = "$ Windows NT $"; required as-is

Provider = "Microsoft"; maximum of 30 characters, full app name will be "<provider> <appname>"

Cesignature = "$ Windows CE $"; required as-is

[Cestrings]

Appname = "mine sweeper"; maximum of 40 characters, full app name will be "<provider> <appname>"

Installdir = % CE1 % \ % appname %; Program Files \ mine sweeper

; Directory identifier Pocket PC directory

; % CE1 % \ Program Files

; % CE2 % \ WINDOWS

; % Ce4 % \ windows \ Startup

; % Ce5 % \ My Documents ents

; % Ce8 % \ Program Files \ games

; % Ce11 % \ windows \ Start Menu \ Programs

; % Ce14 % \ windows \ Start Menu \ Programs \ games

; % Ce15 % \ windows \ Fonts

; % Ce17 % \ windows \ Start Menu

[Sourcedisksnames]; directory that holds the application's files

1 =, "common files", common; disk_id =, comment, path (absolute or relative paths)

[Sourcedisksfiles]; list of files to be encoded in. Cab

Bigexpl.wav = 1

Miniwin.wav = 1

Winmine.exe = 1

[Defaultinstall]; operations to be completed during install

Copyfiles = copytoprogramfiles

Addreg = regdata

Ceshortcuts = shortcuts

[Destinationdirs]; default destination directories for each operation section

Copytoprogramfiles = 0, % installdir %

Shortcuts = 0, % ce14 %; \ windows \ Start Menu \ Programs \ games

[Copytoprogramfiles]; copy operation file list

"Winmine.exe", winmine.exe

"Miniwin.wav", miniwin.wav

"Bigexpl.wav", bigexpl.wav

[Regdata]; Registry Key List

Hkcu, Software \ % appname %, majorversion, 0x00010001,1

Hkcu, Software \ % appname %, minorversion, 0x00010001,0

[Shortcuts]; shortcut created in destination Dir, % ce14 %

%Appname,,0, winmine.exe

2. Use the cabwiz command to generate the cab file

Cabwiz sample. inf/compress

/Compress command can only be used in Versions later than Windows Mobile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.