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