Registrare una dll o un componente ocx con un click

Grazie ad un componente di sviluppo MIcrosoft è possibile registrare o eliminare un componente .ocx o una .dll.
Inserendo queste modifche nel registro di sistema, con un tasto dx su un file verranno aggiunte 2 voci nel menù contestuale: REG o UNREG.

Per attivare il controllo sulle dll:

REGEDIT4

[HKEY_CLASSES_ROOT\dllfile\shell]
@=""

[HKEY_CLASSES_ROOT\dllfile\shell\Register COMponent]

[HKEY_CLASSES_ROOT\dllfile\shell\Register COMponent\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister COMponent]

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister COMponent\command]
@="regsvr32.exe /u \"%1\""

Per gli ocx:

REGEDIT4

[HKEY_CLASSES_ROOT\.ocx]
@="OCXfile"
"Content Type"="application/ocx"

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/ocx]
"Extension"=".OCX"

[HKEY_CLASSES_ROOT\OCXfile]
@="ActiveX COMponent"
"EditFlags"=hex:00,00,00,00
"AlwaysShowExt"=""

[HKEY_CLASSES_ROOT\OCXfile\DefaultIcon]
@="%SystemRoot%\\system32\\SHELL32.dll,21"

[HKEY_CLASSES_ROOT\OCXfile\QuickView]
@="*"

[HKEY_CLASSES_ROOT\OCXfile\Shell]
@=""

[HKEY_CLASSES_ROOT\OCXfile\Shell\Register COMponent]
"EditFlags"=hex:01,00,00,00

[HKEY_CLASSES_ROOT\OCXfile\Shell\Register COMponent\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\OCXfile\Shell\Unregister COMponent]
"EditFlags"=hex:01,00,00,00

[HKEY_CLASSES_ROOT\OCXfile\Shell\Unregister COMponent\command]
@="regsvr32.exe /u \"%1\""

Per comodità copiare e incollare in un file txt vuoto e alla chiusura rinominarlo in .reg, poi con Tasto DX => Unisci il comando verrà unito al registro di sistema.