Using Registry Patches
In addition to editing
the Registry with the Registry Editor (see earlier in this
chapter), you can make changes by using Registry patches. A Registry
patch is simply a text file with the .reg
extension that contains one or more Registry keys or values. If you
double-click on a .reg file, the patch is
applied to the Registry, meaning that the contents of the patch are
merged with the contents of the Registry. This
tool is especially handy for backing up small portions of the
Registry or copying Registry data to someone else’s computer.
Create a Registry Patch
Open the Registry Editor, and select a branch you wish to use. The branch can be anywhere from one of the top level branches to a branch a dozen layers deep. Registry patches include not only the branch you select, but all of the values and subkeys in the branch. Don’t select anything more than what you absolutely need.
Select Export Registry File from the Registry menu, type a filename, and press OK. All of the values and subkeys in the selected branch will then be duplicated in the patch. Make sure the filename of the new Registry patch has the
.regextension.
Creating a Registry patch is the easy part; the hard part is determining the Registry keys from which you should make patches. See Section 3.6 later in this chapter for details.
Edit a Registry Patch
Since
Registry
patches are just plain text files, you can edit them with any
plain-text editor, such as Notepad
(notepad.exe). The contents of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access