This code will give REGISTER and UNREGISTER menu selections on the right mouse click on OCX and DLL files.
Original Author: Donathan Hutchings
Assumptions
Copy this code to a new text file in NotePad and save the file with the .reg extension. Take out the /s parameter to see the register/unregister notification messages.
Code
REGEDIT4
[HKEY_CLASSES_ROOTdllfileShellRegistercommand]
@="Regsvr32 /s "%1""
[HKEY_CLASSES_ROOTdllfileShellUnregistercommand]
@="Regsvr32 /s /u "%1""
[HKEY_CLASSES_ROOT.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOTocxfile]
@="OCX"
[HKEY_CLASSES_ROOTocxfileShellRegistercommand]
@="Regsvr32 /s "%1""
[HKEY_CLASSES_ROOTocxfileShellUnregistercommand]
@="Regsvr32 /s /u "%1""