Flux rss

Microsoft Windows - The registry

What is the registry?

In version 3.1 of Microsoft Windows, applications that had been installed were configured in Windows with configuration files (which had the extension .ini). There were also two configuration files for Windows itself:

  • win.ini: for defining user settings (like language, colours, and wallpaper)
  • system.ini: for configuring Windows' use of the machine itself (like the sound card and screen resolution)
Finally, one file (reg.dat) was used for associating files with programs (defining which program would be used to open a file with a given extension).

Since then, Microsoft has decided to gather all information into two files (called the "registry"). The files are:

  • "user.dat" - containing user settings
  • "system.dat" - containing system settings
Microsoft kept the "system.ini" and "win.ini" files to ensure compatibility with programs that worked in Windows 3.1.

Advantages and disadvantages

This registry is meant to group all configuration information together, in order to both give it a semblance of organisation and limit the number of configuration files on the hard drive.
The registry is a file containing a tree structure in which settings are grouped by criteria. Each criterion corresponds to a branch which may then be subdivided into other branches (hence, a "tree"). Each configuration element is located at the very end of a branch in what is called "a key".

The biggest problem with this registry is that, after a program is installed, it creates several keys in various places in the registry, and when it is uninstalled, the keys are erased (in a best-case scenario) but the branches of the tree remain. When you install program after program and later erase them, little by little the system slows down. Eventually, you may have to reinstall Windows.

Editing the registry

This colossal edifice can be edited, but it must be done with caution (the registry is the heart of Windows — no registry, no Windows).

  • The first thing that must be done is making a copy of the registry. This will let you restore your initial settings if a problem arises.
  • Then, you must disable the attributes of the files system.dat and user.dat
  • Finally, run the program "c:\windows\regedit.exe"
All that's left is modifying the keys that you want to edit.

Description of the branches

In the registry editor (regedit.exe) you will see six main branches:

  • HKEY_CLASSES_ROOT (called HKCR): Contains all file associations; the names of the first keys listed within it correspond to the file extensions in question.
    Shown lower down on the tree are keys which correspond to the names of file types, and their attributes:
    • The default icon (DefaultIcon)
    • The associated action (shell): open, run, etc.
  • HKEY_CURRENT_USER (called HKCU): Defines settings for the current user, and is divided into six sub-categories:
    • control panel: for the control panel
    • software: for software that has been installed
    • AppEvents: for system sounds (the beep or boop when you click on something)
    • keyboard layout: for keyboard settings
    • Remote Access: for remote access over a network
    • Network: Network configuration
  • HKEY_LOCAL_MACHINE (called HKLM): Contains all information related to your machine:
    • hardware: for the processor and motherboard
    • enum: for hardware (peripheral devices, etc.)
    • network: for networking and the Internet
    • software: for software configurations shared by all users
  • HKEY_USERS (called HKU): Contains separate settings for each user
  • HKEY_CURRENT_CONFIG (called HKCC): This is a shortcut to the configuration currently being used in HKLM\Config. It contains settings for the current configuration of the computer.
  • HKEY_DYN_DATA (called HKDD): This is a shortcut to the components currently being used only in RAM in HKLM\Config (volatile information: exists only temporarily, until the system is reinitialised).


Dernière modification le Thursday October 16, 2008 02:43:14 PM.
This document entitled « Microsoft Windows - The registry » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for

Download Wise Registry Cleaner 3.72 Wise Registry Cleaner scans the Windows registry for invalid or obsolete information and presents you with a list of potential problems. To help you decide which items to delete, the program classifies them as `Safe to fix` or `Not fully safe to fix`.... en.kioskea.net/telecharger/telecharger-925-wise-registry-cleaner-3-72
Windows cannot find registry Hello, since yesterday windows keeps giving me an arror message that it cannot find registry and will constantly crash. any idea of how can o make things alright? en.kioskea.net/forum/affich-24246-windows-cannot-find-registry
Unable to open my registry Hello Friends, I am unable to open win Xp pro windows regedit in my PC. When I click on it to open, it appears a message "Registry editing has been dis able by your administrator". Thanx & rgds, Mukund en.kioskea.net/forum/affich-25623-unable-to-open-my-registry

Results for

How to open RegistryHow to open Registry For windows XP: For Windows Vista The registry is a directory path that stores option and settings for windows operating system. The registry allows you to access difficult file to track in the background. All... en.kioskea.net/faq/sujet-589-how-to-open-registry
Making a backup of your registryMaking a backup of your registry Export/ Import Making a backup and restoring your registry using the Windows Recovery Console Here below you should two simple methods on how to make a backup and to restore your registry. Export/... en.kioskea.net/faq/sujet-519-making-a-backup-of-your-registry
[Windows 2000/XP] Update without any registration[Windows 2000/XP] Update without any registration When updating your Windows XP or 2000, using Windows Update and that you don t want to allow personal data to be transferred, this can be easily achieved by adding a key to the registry. Open... en.kioskea.net/faq/sujet-717-windows-2000-xp-update-without-any-registration

Results for

DVD Drive Problem.... (Solved)Hi! My LG Internal Super Multi DVD Rewriter (GSA-H55L) keeps reading disc as "RAW"… Because of that I can’t use the drag and drop method of burning and this is driving me crazy! Anyone have a suggestion to fix this problem? P.S.: I’m using DVD-R en.kioskea.net/forum/affich-277-dvd-drive-problem
Windows script host errorHello,i ve ds huge malfunctionin of..WINDOWS SCRIPT HOST ERROR..on ma start up.and after ds...every time i log on 2 ne syt...i get it as...."Google-".......in da status bar....i tried 2 delete da vbs file 4m registry as suggested in one of the repair... en.kioskea.net/forum/affich-8157-windows-script-host-error

Results for

Download Windows Live Messenger Windows Live Messenger is the next-generation MSN Messenger. It has everything you already love about Messenger—your contact list, emoticons, and instant access to your friends via text, voice, and video—plus new ways to connect and share photos... en.kioskea.net/telecharger/telecharger-47-windows-live-messenger
Download Windows Mobile Device CenterWith the arriving of Windows Vista, it is consequently necessary to use Windows Mobile Device Center.It works on the same foundation as ActiveSync but on top of that aesthetics more complete and with a catch in hand more intuitive.The Windows Mobile... en.kioskea.net/telecharger/telecharger-409-windows-mobile-device-center
Download Windows Movie MakerWindows Movie Maker return the surprisingly easy and amusing family realization of films, by allowing you to create, to edit and to share your films on your own computer by of simple slip move. Add special effects, music and narration.Share your film... en.kioskea.net/telecharger/telecharger-124-windows-movie-maker

Results for

Operating systems - MIME Types The MIME type (Multipurpose Internet Mail Extensions) is a standard that was proposed by the Bell Communications laboratories in 1991 to broaden the possibilities of email, involving insertion of documents (images, sounds and text) into a message.... en.kioskea.net/systemes/mime.php3
Windows - Tips and Tricks - Optimisation When menus in Windows (in the Start menu) load, they take some time to fully appear. To speed them up: Open the Registry, then go toHKEY_CURRENT_USER/Control Panel/Desktop and create a string of characters called MenuShowDelay. You can use this to... en.kioskea.net/win/winastop.php3
File sharing in Windows XP File sharing involves making the content of one or more directories available through the network. All Windows systems have standard devices making it easy to share the content of a directory. However, file sharing may lead to security problems... en.kioskea.net/configuration-reseau/partage-fichiers.php3