How to delete key using .reg file?

G

Guest

Hi

I am aware you can add reg keys etc by merging .reg files.
How do you delete a key etc from the registry using .reg files?

Example: The below is the text from a .reg file which adds a key. How
would it look if I wanted to delete that same entry?

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences\ERegistered]
@="1"
 
G

Guest

Hi

I am aware you can add reg keys etc by merging .reg files.
How do you delete a key etc from the registry using .reg files?

Example: The below is the text from a .reg file which adds a key.
How would it look if I wanted to delete that same entry?

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences\ERe
gistered] @="1"


To remove the KEY: (put a minus sign at the beginning)

[-HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences
\ERegistered]

To remove the VALUE: (use nothing between two quotes for the value)

[HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences
\ERegistered] @=""
 
K

Keith Miller

To remove a named value, use "<valuename>"=-

[HKCU\Software\Microsoft\Windows\ShellNoRoam]
"BagMRU Size"=-

Keith

Hi

I am aware you can add reg keys etc by merging .reg files.
How do you delete a key etc from the registry using .reg files?

Example: The below is the text from a .reg file which adds a key.
How would it look if I wanted to delete that same entry?

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences\ERe
gistered] @="1"


To remove the KEY: (put a minus sign at the beginning)

[-HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences
\ERegistered]

To remove the VALUE: (use nothing between two quotes for the value)

[HKEY_CLASSES_ROOT\Software\RealNetworks\RealOneEnt\6.0\Preferences
\ERegistered] @=""
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top