Click here to Skip to main content
15,885,365 members
Articles / Programming Languages / C++
Article

How to Register Dll files in Explorer for Windows ME, 2000, XP and .NET

Rate me:
Please Sign up or sign in to vote.
4.44/5 (12 votes)
4 May 2003 582.4K   29   19
When we select a dll file in the explorer we can register/unregister it (Regsvr32)

XP DLL Context Menu

Introduction

Have you ever wanted to register dll files from Explorer? DLL files that export the 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 registy under HKEY_CLASSES_ROOT\dllfile\shell as in the following:

Registry Editor

Windows Registry Editor

RegSvr32

RegSvr32 Screenshot

UnregSvr32

UnregSvr32 Screenshot

What is regsvr32?

Regsvr32 is an executable file that gets a Dll file name as an argument and runs its DllRegisterServer function to allow pages on that server to access its functions

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


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 1 Pin
mla15418-Feb-09 3:32
mla15418-Feb-09 3:32 
GeneralRe: Problem and correction [modified] Pin
mla15417-Feb-09 8:50
mla15417-Feb-09 8:50 
GeneralDo it the Explorer way Pin
macerenn10-Oct-07 5:09
macerenn10-Oct-07 5:09 
GeneralRe: This is "source-code-style, not actual code" Pin
macerenn10-Oct-07 5:12
macerenn10-Oct-07 5:12 
Questionhow to register dll Pin
Swapnil Shah26-Aug-07 3:57
Swapnil Shah26-Aug-07 3:57 
AnswerRe: how to register dll Pin
macerenn10-Oct-07 5:20
macerenn10-Oct-07 5:20 
GeneralPath name with spaces Pin
jung-kreidler4-Jul-07 4:50
jung-kreidler4-Jul-07 4:50 
GeneralRe: Path name with spaces Pin
jdperk8-Aug-07 8:47
jdperk8-Aug-07 8:47 
I am using XP Pro and added the keys dllfile-shell-Regsvr23-Command then edit the value data "regsrv32.exe %1" and also setup the Unregsvr32 but when I select a dll in explorer and right click to select Regsrv32 it prompts me to select a program to view. Is there something I am missing here? I am not a registry expert so please write out all the steps. Also what should the Value data be for both entries "regsvr32.exe" "%1" and "unregsvr32.exe" "/u%1" are these correct including the quotation mark placement and spaces?
Questiondll registration Pin
tras200724-May-07 18:39
tras200724-May-07 18:39 
Questionhow can register activex dll for all network user machine or domain controller machine Pin
john sevillano12-Sep-06 10:40
john sevillano12-Sep-06 10:40 
Questionwhere exactly does the ""s is added to? Pin
Anonymous26-Oct-05 5:14
Anonymous26-Oct-05 5:14 
GeneralI don't have them folders Pin
Anonymous6-Sep-05 15:18
Anonymous6-Sep-05 15:18 
GeneralRe: I don't have them folders Pin
Eauthanizor28-Dec-05 8:44
Eauthanizor28-Dec-05 8:44 
GeneralWorks better as "regsvr32.exe %1" Pin
Anonymous25-Aug-05 16:52
Anonymous25-Aug-05 16:52 
Generalimage link Pin
Anonymous26-Oct-03 4:42
Anonymous26-Oct-03 4:42 
QuestionDuplicate? Pin
Matthew Berry12-May-03 21:59
Matthew Berry12-May-03 21:59 
QuestionSame thing for COM EXEs? Pin
Josh Hidley5-May-03 14:34
Josh Hidley5-May-03 14:34 
GeneralBroken Image Links Pin
Softomatix5-May-03 14:29
Softomatix5-May-03 14:29 
GeneralI want more... Pin
Ernest Laurentin5-May-03 13:34
Ernest Laurentin5-May-03 13:34 

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

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