How to delete key using .reg file?

  • Thread starter Thread starter Guest
  • Start date Start date
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"
 
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] @=""
 
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] @=""
 
Back
Top