Subscribe to Windows IT Pro
March 19, 2001 12:00 AM

A Registration File Drawback

Windows IT Pro
InstantDoc ID #20048
Rating: (0)

Registration (.reg) files can't delete anything in the registry: If you have a bad key or data item, sending correct information to that key or item merely adds good information to bad. (Although when you send new values to a data item, the new values replace any existing values.) This drawback might not affect you as an administrator using .reg files to tweak and maintain computers and users, but its effect is felt all over the PC world. Software programs that use .reg files during installation procedures also use .reg files during software updates; these programs sometimes change registry keys or data items instead of merely replacing data values—leaving behind old registry items. Many uninstall programs either use .reg files to zero out data values or totally ignore registry data during uninstallation. Eventually, the registry becomes bloated with items that aren't needed or that cause conflicts. Registry cleaning tools, such as regclean.exe, can help. (You can download Regclean from http://support.microsoft.com/support/downloads.) However, Regclean works only with the HKEY_CLASSES_ROOT subtree, which is almost never the source of major registry problems, and the program has been known to cause as many problems as it fixes.

Related Content:

ARTICLE TOOLS

Comments
  • Glenn Turner
    10 years ago
    Mar 25, 2002

    You state that .reg files CAN'T delete registry information.

    That's not entirely true.

    To delete a value, use a minus sign as shown below:

    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Test]
    "test"=-

    To delete a key, use a minus sign as shown below:

    [-HKEY_LOCAL_MACHINE\\SOFTWARE\\Test]


    Hope this helps,

  • jedi
    11 years ago
    Aug 07, 2001

    You CAN delete registry entries with a .reg file.
    Simply put a - (minus) sign in front of the key eg
    [-HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Excel.Sheet.8]
    This will delete the key and all sub keys so dont forget to include the subkeys to replace them after deletion.

  • hh Wieck
    11 years ago
    Jul 18, 2001

    Did not trust register editors or uninstall programs. I go though the reg file bimonthly

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.