How to Remove Windows 95/98 Registry Entries Automatically

ID: Q171424


The information in this article applies to:

IMPORTANT: This article describes how to create and run an .inf file designed to delete registry entries automatically. Creating an .inf file to delete registry entries is a dangerous process. Do not attempt to do this unless you have made copies of your registry (System.dat and User.dat) files. These files are hidden files in the Windows folder. You should also verify that the .inf file you create works properly in your environment before using it in a production environment. Deleting registry entries incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of this method can be solved. Use this method at your own risk.

SUMMARY

This article describes how to create an .inf file to automatically delete registry entries.


MORE INFORMATION

To create an .inf file to automatically delete registry entries, follow these steps:

  1. Use any text editor (such as Notepad) to create the sample Del-reg.inf file shown below. Note that Del-reg.inf is not a required name, but it is used in these instructions.
    
          ; This file called  Del-Reg.INF deletes the registry entries listed
          ; under the [RegChange] section.  In this example it deletes the
          ; UserName value name under the key HKLM\network\Logon
    
          [Version]
          signature="$CHICAGO$"
    
          [DefaultInstall]
          ; DelReg = RegChange
    
          [RunIt]
          DelReg=RegChange
    
          [RegChange]
          HKLM,Network\Logon,username
          HKLM,Network\Logon\keyname, 


Notes for this Sample File

Additional query words:


Keywords          : kbenv win95 win98 
Version           : WINDOWS:95
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: February 17, 1999