ProgrammingChapter —7
232 700Series Color MobileComputer User’s Manual
[AddReg]
This section, under the [DefaultInstall] section,is optional and describes
the keys and values that the .CAB file adds to the device registry . Within
the [DefaultInstall] section, a reference may have beenmade to this
section, such as “AddReg=RegSettings.All”. This section defines the
options for that setting.
Required? No
Sadd_registry_section:registry_root_string
String that specifies the registry root location. The following list shows
thevaluessupportedbyWindowsCE.
SHKCR Same as HKEY_CLASSES_ROOT
SHKCU Sameas HKEY_CURRENT_ USER
SHKLM Sameas HKEY_LOCAL_ MACHINE
Sadd_registry_section:value_name
Registryvaluename.Ifempty,the“default”registryvaluenameisused.
Sadd_registry_section:flags
Numeric value that specifies information about th e registry key. The
following tableshows the values that are supported by Window CE.
Flag Value Description
FLG_ADDREG_NOCLOBBER 0x00000002 If the registry key exists, do not overwrite it. Can be used
with any ofthe other flags in this table.
FLG_ADDREG_TYPE_SZ 0x00000000 REG_SZregistry data type.
FLG_ADDREG_TYPE_MULTI_SZ 0x00010000 REG_MULTI_SZ registry data type. Value field that follows
canbe a listof strings separated by commas.
FLG_ADDREG_TYPE_BINARY 0x00000001 REG_BINARYregistry data type. Value field that follows
mustbe a list of numeric values separated by commas, one
byteper field, and must not use the 0x hexadecimal prefix.
FLG_ADDREG_TYPE_DWORD 0x00010001 REG_DWORDdata type. The noncompatible format in the
Win32 Setup .INF documentation is supported.
Example
AddReg = RegSettings.All
[RegSettings.All]
HKLM,%reg_path%,,0x00000000,alpha ; <default> = “alpha”
HKLM,%reg_path%,test,0x00010001,3 ; Test = 3
HKLM,%reg_path%\new,another,0x00010001,6 ; New\another = 6