by Fabio Guerrazzi (4 Submissions)
Category: Registry
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This lil tip add the commands to the explorer menu in order to register/unregister activex clicking on the file.
Nuova pagina 1
Easy way to
Register/Unregister DLLs
The lines below add the items
Register
Unregister
to the Explorer menu when the user does right click on it with the mouse
that will avoid to register manually everytime the activex using REGSVR32.EXE
-copy to a file RegOCX.REG the lines below as is (with all spaces) then double
click on it to
add them to the registry
REGEDIT4
[HKEY_CLASSES_ROOT\ocxfile\shell]
[HKEY_CLASSES_ROOT\ocxfile\shell\Register]
@="&Register OCX"
[HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
@="\"REGSVR32.EXE\" \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister]
@="&Unregister OCX"
[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister\command]
@="\"REGSVR32.EXE\" \"%1\" \"/U\" "
**** To do the same with the DLLs ****
REGEDIT4
[HKEY_CLASSES_ROOT\dllfile\shell]
[HKEY_CLASSES_ROOT\dllfile\shell\Register]
@="&Register ActiveX DLL"
[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@="\"REGSVR32.EXE\" \"%1\""
[HKEY_CLASSES_ROOT\dllfile\shell\Unregister]
@="&Unregister ActiveX DLL"
[HKEY_CLASSES_ROOT\dllfile\shell\Unregister\command]
@="\"REGSVR32.EXE\" \"%1\" \"/U\" "