OCX / DLL Registry File

By | 2002-06-01

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""

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.