Click here to Skip to main content
Licence 
First Posted 5 Aug 2002
Views 97,693
Bookmarked 13 times

How to register DLL files from the Explorer

By | 5 Aug 2002 | Article
When we select a dll file in the explorer we can register/unregister it (by Regsvr32)

Sample Image - ContextMenu.jpg

Introduction

Have you ever wanted to register DLL files from the Explorer? DLL files that export DllRegisterServer and DllUnregisterServer (as COM DLL files do) can easily be controlled from the Explorer while selected. You can register/unregister it as seen in the image above. To enable this feature, add subkeys to the registry under HKEY_CLASSES_ROOT\dllfile, as in the following:

Registry Image - dllfile.jpg

What is regsvr32?

Regsvr32 is an executable file that gets a DLL file name as an argument and runs its DllRegisterServer function (if exists). As for uninstall, just add the '/u' argument and it calls DllUnregisterServer function (if exists).

That's all.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Dudi Avramov

Web Developer

Israel Israel

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralSimpler PinsussHugo Hallman5:32 13 Jun '03  
GeneralCorrection PinsussIlia21:19 6 Aug '02  
GeneralSuggestions PinmemberErnest Laurentin4:44 6 Aug '02  
GeneralRe: Suggestions PinmemberThomas Freudenberg6:03 6 Aug '02  
Ernest Laurentin wrote:
[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\command]
@="D:\\MICROS~2\\Common\\Tools\\DEPENDS.EXE /dde"

 
That won't work on all machines, except everybody installs to D:\MICROS~2\Common\Tools\ Wink | ;)
AFAIK the platform SDK setup adds the bin folder to the path environment variable, therefore a simple
[HKEY_CLASSES_ROOT\dllfile\shell\View Dependencies\command]
@="DEPENDS.EXE /dde"
without any path should be sufficient.
 
Regards
Thomas
 
Sonork id: 100.10453 Thömmi
 

Disclaimer:
Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

GeneralRe: Suggestions Pinmemberokigan9:31 6 Aug '02  
GeneralRe: Suggestions PinmemberErnest Laurentin17:28 6 Aug '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120529.1 | Last Updated 6 Aug 2002
Article Copyright 2002 by Dudi Avramov
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid