Thursday, February 19, 2009

Adding and Deleting Keys and Values

Editing the Registry often requires that you add and delete keys and values To add a new key, select the new key's parent key in the left pane. Then, choose Edit New Key from the menu. Type in the new key's name. You can also right-click on the new key's parent key and choose Edit New Key. To delete a key, select it and press the Delete key.

Very often, you need to add values to a key in order for its changes to take effect. To add a value to a key, select the new key's parent key in the left pane. From the menu, choose Edit New, and from the submenu, select the type of value you want to create. We've already covered the five types of values you can create; as a reminder, they're detailed in Table1.

To create a new value, type in the name of the new value and press Enter. Press Enter again. The Edit Value dialog box appears. Enter your data and press Enter.

Table 1. Values you'll encounter in the Registry

Value name

Registry data type

String value

REG_SZ

Binary value

REG_BINARY

DWORD value

REG_DWORD

String array value

REG_MULTI_SZ

Expanded string value

REG_EXPAND_SZ

Load disqus comments

0 comments