All pastes #591828 Raw Edit

Someone

public text v1 · immutable
#591828 ·published 2007-06-27 12:45 UTC
rendered paste body
This registry tweak helps me easily UnRegister DLL and OCX Files I remove.

It puts two entries into the right-click context menu: "Register" and "UnRegister" when you highlight and right-click on a single DLL or OCX File, or when you highlight and right-click on multiple DLL and OCX Files.

It really makes Registering and UnRegistering DLL and OCX Files very easy. Plus it gives me the ability to UnRegister multiples (even hundreds) of these files at once.

CODE
Windows Registry Editor Version 5.00

;Add register / unregister to the context menu for .dll files
[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""

;Add register / unregister to the context menu for .ocx files
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""

I normally do not use any registry cleaners, or UnRegister any DLL and OCX files, for a very long time after I have Slimmed Down my installation. I want to be certain everything is A-OK first.