.inf File Example (PPC Only)

The following is a sample .inf file that can be used as a template for the common operations that are required for installing an application on Pocket PC:

[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
 
[SourceDisksNames]                  ; directory that holds the application's files
1 = , "Common Files",,Common
 
[SourceDisksFiles]                  ; list of files to be included 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

The .inf file that you create must point to the location of the completed program files that you want to package. The provider name and application name cannot contain XML reserved characters and Windows CE file system reserved characters, such as backslash (\), slash mark (/), colon (:), asterisk (*), question mark (?), closing quotation marks ("), less than (<), greater than (>), pipe (|), and ampersand (&).

Additional information about customizing .inf files for your application is available later in this topic, and on MSDN.

See Also

.inf Files | .inf File Sections | Information File Creation

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.