Share via


Registry Configuration Service Provider Examples

Although the registry is directly accessible, accessing the registry through the metabase is the preferred method for updating settings. This is accomplished by using the Configuration Service Provider specific to the settings that require an update.

Querying the registry at the top level is not allowed. All parms must be queried individually. The underlying data store of the Registry is typed. Be sure to use the datatype attribute of the <parm> tag.

This documentation describes the set of default characteristics. Additional characteristics may be added.

Because the Registry Configuration Service Provider uses the backslash (\) character as a separator between key names, backslashes which occur in the name of a registry key must be escaped. Backslashes can be escaped by using two sequential backslashes (\\).

Note Characteristics or parms for the FileOperation Configuration Service Provider, Metabase Configuration Service Provider, and Registry Configuration Service Provider can contain an additional attribute called "translation". The two values for this attribute are "filesystem" and "install". A translation of type "filesystem" causes all file paths to be canonicalized (that is, double backslashes are removed). A translation of type "install" includes all the translations done for "filesystem", but also translates all CE Strings (for example, %CE2%) into the correct file path for the device. CabWizSP will automatically add the appropriate translation to file operations and registry keys in an .inf file.

The following XML examples can be used as templates to configure settings for the Registry Configuration Service Provider. Below the Registry characteristic type, replace the value for each parm and characteristic type with values that correspond to your system.

For an XML example of the Registry Configuration Service Provider that sends an error message regarding the display font size, see MSPROV DTD Errors.

See Also

Registry Configuration Service Provider | Update or Add Settings to the Device

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.