Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the Windows registry exist? [closed]

this is more OS architecture question than programming directly, but still. Why was the Windows registry created as a completely separate subsystem for storing system/application settings? In *nix OS'es there is /etc directory which is perfectly understandable, as filesystem is a natural hierarchical way for storing settings, while Microsoft decided to create a completely outside hierarchical subsystem, which seems to be a foolish investment, why didn't they just use a filesystem hierarchy?

like image 761
justadreamer Avatar asked Oct 23 '09 22:10

justadreamer


People also ask

Why does the Windows Registry exist?

The idea is to have all settings for all programs stored in one single place instead of having them spread all over your disk.

Does Windows still use the registry?

The Windows Registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry. The kernel, device drivers, services, Security Accounts Manager, and user interfaces can all use the registry.

What causes registry corruption?

There are many reasons why a registry hive may be corrupted. Most likely, the corruption is introduced when the computer is shut down, and you cannot track the cause because the computer is unloading processes and drivers during shutdown. Sometimes, it is difficult to find the cause of registry corruption.

Was the Windows Registry a good idea?

The real problem with the registry is that it was exposed to the outside world. Instead of being a secure, central hive for only the most essential and global settings, over time the registry has slowly become a trash heap of miscellaneous junk settings for every rinky-dink application on the planet.


1 Answers

  1. Centralized - which is useful for roaming profiles.
  2. Transactional - which makes it harder to smash your configuration.
  3. Security - You can enforce read/write with better granularity than a file (per-key/value).
like image 195
Kevin Montrose Avatar answered Oct 11 '22 06:10

Kevin Montrose