• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. The Registry > Automating the Deletion of Registry Items

3.7. Automating the Deletion of Registry Items

An important drawback to using Registry patches is that they can be used only to replace or augment information in the Registry. No provision for removing keys or values is included in Registry patches, yet some important changes can only be made by removing keys or values. For example, to remove the Bitmap Image entry from Explorer's New menu, you need to delete the key HKEY_CLASSES_ROOT\.bmp\ShellNew entirely, and no Registry patch can do that.

Here, we enlist the services of the Windows Script Host, which includes a functionality for manipulating Registry information. Chapter 9 documents writing scripts for the Windows Script Host and, in particular, Registry functions like the one used in this solution:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint