If you need to add a binary or expandable string value to a Registry
patch file you??™ve already started editing, though, all you have to do is
return to the Registry Editor, create a temporary key somewhere, and then
create your new value. When you??™re done, just export the key to a new file,
delete the key from the Registry, and then copy and paste the value to your
other Registry patch file.
Delete keys and values from a Registry patch
Although the Registry Editor won??™t ever create a patch that deletes Registry
keys or values, it??™s easy enough to make one by hand. To delete a key with a
Registry Patch, place a minus sign before the key name, like this:
-[HKEY_CURRENT_USER\Control Panel\don't load]
This patch, when applied, deletes the specified key and all of its values, as
well as any subkeys. To delete a single value from a key, place a minus sign
after the equals sign, like this:
[HKEY_CURRENT_USER\Control Panel\don't load]
"desk.cpl"=-
Of course, these tricks only work if you have sufficient permission to
delete those keys. See ???Prevent Changes to a Registry Key,??? later in this
chapter, for more information.
Apply a Registry patch
To copy the stuff from a Registry patch file back into your Registry, you
need to apply it. The easiest way is to double-click the file (it doesn??™t matter
if the Registry Editor is running or not).
If you see a UAC prompt at this point, click Continue. Then answer Yes
when asked whether you??™re sure you want to add the information in the .
Pages:
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176