Registry |
The Registry command sets or removes registry keys on the managed Pocket PC. This command can be used in a Software package that both installs an application and sets user configuration settings, or it could be used in a Configuration package that is specifically designed to update registry settings.
The Registry command has two formats: one supports entering registry data directly into the script, and the other references registry data that is stored in a separate file included in the package.
Entering registry data directly
The format of the command that supports entering registry data directly into the script is:
Where the following arguments are defined:
Table 1-4 shows the values that are supported by Windows CE.
This can be a path delimited by backslash characters ("\"), such as "Software\Symantec\MyApp". It must not start with a backslash.
If this is empty, the "(default)" registry value name is used.
Table 1-5 shows the values that are supported by Windows CE.
The format of this field depends on the value type as specified in the flags field.
Referencing registry data stored in a file
The format of the command that references registry data that is stored in a separate file included in the package is:
Where the following argument is defined:
For example, "%vendorfiles%/Registry.dat"
Any name can be used for this file, as long as it matches what is provided in the command line. This file is a simple text file in which each line contains the same registry data information as described for the alternative command format (entering registry data directly into the script).
The following code example shows a typical registry data file:
Script variable reg_path = Software\Company\AppName 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
If either form of the command occurs in the post-install script, the keys in the registry data file are created (if they don't already exist) and the values are set as specified. If the command occurs in the post-remove script, the keys specified in the registry data file are deleted from the registry, unless the FLG_ADDREG_NOCLOBBER flag is set for a given key.
More Information |