Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

How to register DLL files from the Explorer

0.00/5 (No votes)
5 Aug 2002 1  
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