The .CAB files created using an .inf file are processor specific: Each one can be used with only one type of processor. To create processor-specific CAB files, you must append the processor type extension to some of the section names. For example:
[DefaultInstall] - shared by all platforms [DefaultInstall.sh3] - specific to the SH3 processor [DefaultInstall.mips] - specific to the MIPS processor
The following sections can be appended with a processor-specific extension:
[CEDevice][DefaultInstall][SourceDisksNames][SourceDisksFiles]
An .inf file is made up of a number of sections, each of which starts with a section name in [brackets].
[Version]Signature="signature-name"Provider=provider-nameCESignature="$Windows CE___FCKpd___2quot;
[CEDevice] *[ProcessorType=processor-type][UnsupportedPlatforms=platform-family-name [ , platform-family-name]][VersionMin=[major_version.minor_version]][VersionMax=[major_version.minor_version]][BuildMin=[build-number]][BuildMax=[build-number]]
All of the above keys are optional.
[DefaultInstall]CopyFiles=file-list-section [ , file-list-section]...AddReg=add-registry-section [ , add-registry-section]...CEShortcuts=shortcut-list-section [ , shortcut-list-section]...CESetupDLL=[DLL-filename]CESelfRegister=DLL-filename [ , DLL-filename]
[SourceDisksNames]disk-ordinal= , disk-label , , path...This section identifies and names the disk that contains the source files for file copying operations. The source files are listed in the [SourceDisksFiles] section (see below).
[SourceDisksFiles]filename=disk-ordinal [ , subdir]...This section names the source files used during installation and identifies the source disks that contain the files. The source disks are listed in the [SourceDisksNames] section (see above).
[DestinationDirs]file-list-section=0, subdir...This section defines the destination directories for the operations specified in the [CopyFiles] and [CEShortcuts] sections (see below).
%CE1% /Program Files%CE2% /Windows%CE3% /Windows/Desktop%CE4% /Windows/Startup%CE5% /My Documents%CE6% /Program Files/Accessories%CE7% /Program Files/Communication%CE8% /Program Files/Games%CE9% /Program Files/Information Manager%CE10% /Program Files/Office%CE11% /Windows/Programs%CE12% /Windows/Programs/Accessories%CE13% /Windows/Programs/Communication%CE14% /Windows/Programs/Games%CE15% /Windows/Fonts%CE16% /Windows/Recent%CE17% /Windows/FavoritesMacros for Palmsize PCs (P/PCs)%CE1% /Program Files%CE2% /Windows%CE3% ***Not Defined***%CE4% /Windows/Startup%CE5% /My Documents%CE6% /Program Files/Accessories%CE7% /Program Files/Communication%CE8% /Program Files/Games%CE9% ***Not Defined***%CE10% ***Not Defined***%CE11% /Windows/Start Menu/Programs%CE12% /Windows/Start Menu/Programs/Accessories%CE13% /Windows/Start Menu/Programs/Communication%CE14% /Windows/Start Menu/Programs/Games%CE15% /Windows/Fonts%CE16% ***Not Defined***%CE17% /Windows/Start Menu
[CopyFiles]destination-file-name [ , source-file-name] [ , ,flag]...This section specifies files to be copied to the Windows CE device during installation. The actual file section name ("CopyFiles") is user-defined, and may vary.
COPYFLG_WARN_IF_SKIP 0x00000001COPYFLG_NOSKIP 0x00000002COPYFLG_NO_OVERWRITE 0x00000010COPYFLG_REPLACEONLY 0x00000400CE_COPYFLG_NO_DATE_DIALOG 0x20000000 Do not copy if target is newerCE_COPYFLG_NODATECHECK 0x40000000 Ignore date and overwrite targetCE_COPYFLG_SHARED 0x80000000 Reference-counting shared DLL
[CEShortcuts] *shortcut-file-name, type-flag, target-file/path [ , standard-destination-path]...This section specifies shortcuts to be created on the Windows CE device during installation. The actual shortcut section name ("CEShortcuts") is user-defined, and may vary.
[AddRegistry]reg-root-string, [subkey], [value-name], [flags], [value]...This section specifies registry entries to be created on the Windows CE device during installation. The actual registry section name ("AddRegistry") is user-defined, and may vary.
FLG_ADDREG_BINVALUETYPE 0x00000001FLG_ADDREG_NOCLOBBER 0x00000002FLG_ADDREG_TYPE_SZ 0x00000000FLG_ADDREG_TYPE_MULTI_SZ 0x00010000FLG_ADDREG_TYPE_BINARY 0x00000001FLG_ADDREG_TYPE_DWORD 0x00010001
[CEStrings] *AppName=application-nameInstallDir=default-installation-directory
[Strings]string-name=value...This section defines custom string macros to be used when the INF file is compiled.