How to Remove Windows 95/98 Registry Entries AutomaticallyID: Q171424
|
This article describes how to create an .inf file to automatically delete registry entries.
To create an .inf file to automatically delete registry entries, follow
these steps:
; 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,
0 - Informs Windows 95 that a reboot is not necessary.
1 - Always silent reboot
2 - Always prompt reboot
root-key, sub-key, [value name]The value name is optional and is denoted by the [] brackets. The comma place holder shown above must be included in this line. Please note that if the sub-key or Value name contains spaces you need to use quotes. Registry entries between quotes may be case sensitive. For example:
HKLM,SOFTWARE\"XYZ inc"\settings,,
The root-key is represented by one of the following abbreviations:HKCR is short for HKEY_CLASSES_ROOTThe sub-key is the continuation of the path to the value to be changed, for example:
HKCU is short for HKEY_CURRENT_USER
HKLM is short for HKEY_LOCAL_MACHINE
HKU is short for HKEY_USERS
HKLM,SOFTWARE\Microsoft\Windows\currentVersion\Fontsremoves the Fonts Key and all of its contents.
RunDLL setupx.dll,InstallHinfSection RunIt 0 path\Del-Reg.infwhere path is the location of the Del-reg.inf file. You can use a physical drive letter from your local computer and a path, or a Universal Naming Convention (UNC) path like \\server\sharename.
Additional query words:
Keywords : kbenv win95 win98
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: February 17, 1999