Home > Computer Science > Adding an entry in context menu for registring/un-registring DLLs !

Adding an entry in context menu for registring/un-registring DLLs !

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

Advertisements
Categories: Computer Science
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: