Hi to every one who is reading this,
I just came across something while registering *.dlls with Windows or *.ocx files. I just wondered there was no option in right click context menu while clicking on these types of files so I decided to make an entry in context menu and found the following work around. Copy past this code in some text editor and then save the file as “abc.reg” and then run it, or make these entries in the registry editor. You will now have the context menu entry register / un-register while right-clicking on the corresponding *.dll/..ocx file.
REGEDIT4 ;This adds the ability to Right-Click on a .dll or .ocx ; and get the Register / UnRegister options. ; ========== ; .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\"" ;==========; .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\"";
End


