
Auldfart's How To Guides
Windows Registry Tutorial What is the Registry? It contains information and settings for all the hardware, software, users, and preferences of the PC. Whenever a user makes changes to a Control Panel
settings, or File Associations, System Policies, or installed software, the
changes are reflected and stored in the Registry. under Windows 95 & 98 it is contained in two hidden files in your Windows directory, called USER.DAT and SYSTEM.DAT, for Windows Me there is an additional CLASSES.DAT file, while under Windows NT/2000 the files are contained seperately in the %SystemRoot%\System32\Config directory. You can not edit these files directly, you must use a tool commonly known as a "Registry
Editor" to make any changes (using registry editors will be discussed later in
the article). Each key can contain other keys (sometimes referred to as sub-keys), as well as Values. The values contain the actual information stored in the Registry. There are three types of values; String,
Binary, and DWORD - the use of these depends upon the context.
Additionally many parameters for device driver and services are this type, and
can be displayed in REGEDT32 in binary, hexadecimal and decimal format, or in REGEDIT in hexadecimal and decimal format.
For example, for the
following value, the string "%SystemRoot%" will replaced by the actual location
of the directory containing the Windows NT system files. (This type is only
available using an advanced registry editor such as REGEDT32) Editing the Registry There are several methods for starting
the Registry Editor, the simplest is to click on the Start button, then select
Run, and in the Open box type "regedit", and if the Registry Editor is installed
it should now open and look like the image below. An alternative Registry Editor (REGEDT32.EXE) is available for use with Windows NT/2000, it includes some additional features not found in the standard version, including; the ability to view and modify security permissions, and being able to create and modify the extended string values REG_EXPAND_SZ & REG_MULTI_SZ. then click Finish
and now you can double click on the new icon to launch the Registry Editor. To display the contents of a key (folder), just click the desired key, and look at the values listed on the right side. You can add a new key or value by selecting New from the Edit menu, or by right-clicking your mouse. And you can rename any value and almost any key with the same method used to rename files; right-click on an object and click rename, or click on it twice (slowly), or just press F2 on the keyboard. Lastly, you can delete a key
or value by clicking on it, and pressing Delete on the keyboard, or by
right-clicking on it, and choosing Delete. It's much better to be safe than sorry! Click the next button for importing and exporting registry settings
|