B.1. Meet RegeditWindows comes with a built-in program for editing Registry entries, a little something called (what else?) the Registry editor. (There are dozens of other Registry-editing, Registry-fixing, and Registry-maintenance programs, tooboth commercial and sharewarebut this one is already on your PC.) As an advanced tool that Microsoft doesn't want falling into the wrong hands, the Registry editor has no Start-menu icon. You must fire it up by typing its name into the Start menu's search box. Type regedit to find the program; select it in the results list. Authenticate yourself (page 191). After a moment, you see a window like Figure B-1.
B.1.1. The Big Five HivesIt turns out that Microsoft has arranged all of those software settings into five broad categories. Microsoft calls them hives or root keys , but they look and act like folders in a Windows Explorer window. You expand one of these folders (keys) just as you would in Explorer, too, by clicking the little flippy triangle button beside its name. The names of these five hives are, frankly, just as weird as the term hives itself:
B.1.2. Keys and ValuesIf you expand one of these hives by clicking its flippy triangle, you'll see long list of inner "folders," called keys . These are the actual settings that the Registry tracks, and that you can edit. Some keys contain other keys, in fact. Keep clicking the + buttons until you find the key you're looking for. In books, magazines, and tutorials on the Web, you'll often encounter references to particular Registry subkeys written out as a Registry path , like this: HKEY_CURRENT_USER Control Panel Mouse (You may see backslashes used instead of the arrows.) That instruction tells you to expand the HKEY_CURRENT_USER root key, then expand Control Panel within it, and finally click the Mouse "folder." It works just like a folder path, like C: Users Chris Desktop. If you actually try this maneuver, you'll find, in the right half of the window, a bunch of keys named DoubleClickSpeed, MouseSpeed, MouseTrails, and so on. These should sound familiar, as they correspond to the options in the Mouse program of your Control Panel. (Figure B-2 clarifies this relationship.)
Each value usually contains either a number or a block of text. DoubleClickSpeed, for example, comes set at 500. In this case, that means 500 milliseconds between clicks, but each Registry value may refer to a different kind of unit. Tip: Many of the Windows Explorer keyboard shortcuts also work in regedit. For example, once you've clicked a key, you can press the right or left arrow to reveal and hide its subkeys. You can also type the first letter of a subkey's name to highlight it in the left panesame with a value's name in the right pane. And you can press the Backspace key to jump to the "parent" key, the one that contains the subkey . B.1.3. Backing Up Key ValuesIn general, you won't go into the Registry unless you truly want to make a change. That's why the program is called regedit, not regviewer. As you know, though, making the wrong change can botch up your copy of Windowsand regedit has no Undo command and no "Save change before closing?" message. That's why it's essential to back up a Registry keyor even its entire root keybefore you change it. Later, if the change you made doesn't work the way you'd hoped, you can restore the original. To back up a key (including and all its values and subkeys), just select it and then choose File Export. Save the resulting key somewhere safe, like your desktop. Later, you can reinstate the key by double-clicking the .reg file you exported. (Or, if youre paid by the hour , open regedit, choose File Import, and manually open the .reg file.) Note: Importing a .reg file merges it with the data already in the Registry. Any values you edited will go back to their original versions, provided you haven't renamed them.This means, for instance, that if you export a key, rename one of the values in that key, and then re-import the .reg file, the value you renamed will still be there, along with the value by its original name. In other words, a .reg file is a very good idea, but it's not a "get out of jail free card" that undoes all types of changes.The only way to get a true Registry backup is to back up the Registry hive files themselves . Only the Complete PC Backup program described on page 647 can do this for you. |