About Windows Registry Keys
The Windows Registry is a hierarchical database defined by the Windows OS to store, modify and manage system and application configuration.
The hierarchy resembles a tree format where each node in the tree is called a Key(Windows Registry Key). Keys can contain Subkeys, Values and additional Data in each Value. Applications installed on any Windows OS use the Registry’s Key/Value format through the Registry API to create, delete and change data stored in the database.
For Example, every time you install a windows application like VLC Player, Photoshop, Advanced System Repair, etc; the applications internally call the Registry API to create new records to store information like Installation Path, User Settings, Program Options, and other application and user specific information in the Registry.
“Developers creating Windows applications are expected to only modify entries in the Registry that control their applications. “
Modifying other programs registry entries either manually or programmatically can often lead to unintended errors in the applications or the whole system itself.
In such cases, restoring the registry to its last known working state becomes inevitable.
Understanding Windows Registry Keys & Values
Data stored in the Windows Registry is stored in the form of a hierarchy of keys. Each Key name is unique and has one or more printable characters except Backslash.
Values and data inside values can contain backslash characters as they’re often used for storing paths to programs.
In the above example, each of the entries on the left panel under the Computer Tag are Keys. All entries on the right panel are Values.
As you can observe, each key can have multiple subkeys and values. Each value can contain data of various formats. Information about the types of data that can be stored in values is described at Registry Value Types.
How to Use The Windows Registry
Microsoft provides RegEdit, a free registry editor bundled in all Windows OS to create, edit and modify Windows Registry Key, Values and Data. To open RegEdit, follow the below instructions
- Search for Regedit on windows
- Type and execute Regedit in the Run Box(Windows Key + R).
All application and system-related Data is stored in Values assigned to Keys that are again categories as Hives to ensure efficient categorization. To change the system or application config, you can change the data or values using the RegEdit utility.
Backup, Add, Modify and Delete Registry Keys and Values
Before you modify your system’s Registry, it’s always recommended to make a backup. Follow the steps below to backup your registry keys
Backup Windows Registry Keys
- Open RegEdit using the above recommendations.
- Select any Key you want to backup or the Computer Key on top.
- Right Click and Select Export.
- Save the .Reg file with a name of your choice.
Add New Keys To Windows Registry
- Open RegEdit and Select any Subkey you want to add new Keys.
- Right Click on the selected key.
- Select New > Key.
- Input a name for the key.
Modify Values & Data In A Registry Key
- Once you have added a key, right-click on it and select New.
- Select any of the 6 types of values to add values to your key.
- To add data, Right Click on a Value and Click Modify.
- Add your data and click OK.
Delete Keys & Values
- To delete a value Right Click on the value you want to Delete and select Delete.
- Similarly to delete a Key, Right Click on a Key and select Delete. Remember that when you delete a Key, all its subkeys and values get deleted too.
You can find me sailing the Bering Strait with my beautiful ship Nonsense where I update Windows Maximizer with geeky, boring posts about troubleshooting nerdy technical issues. Au revoir, amigos!