Click here to Skip to main content
Licence 
First Posted 4 May 2003
Views 526,038
Bookmarked 29 times

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

By Eauthanizor | 4 May 2003
When we select a dll file in the explorer we can register/unregister it (Regsvr32)
3 votes, 25.0%
1

2

3
4 votes, 33.3%
4
5 votes, 41.7%
5
3.82/5 - 12 votes
μ 3.84, σa 2.92 [?]

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

About the Author

Eauthanizor

Web Developer

United States United States

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
GeneralMy vote of 1 Pinmembermla1544:32 18 Feb '09  
GeneralRe: Problem and correction [modified] Pinmembermla1549:50 17 Feb '09  
It appears that when right-clicking on a file in Windows Explorer in a directory whose name contains spaces, and then selecting the register or unregister option, there's a problem.  For example, consider the directory d:\s p a c e s and a dll file located in this directory. If you right-click on the dll file, and choose RegSvr32, you get this message: LoadLibrary("D:\s") failed - The specified library could not be found.  To fix this problem, replace "regsvr32.exe" %1 in the registry editor with "regsvr32.exe" "%1".  Also, replace "regsvr32.exe" /u %1 with "regsvr32.exe" /u "%1".
 
Regards,
Mike
modified on Wednesday, February 18, 2009 9:26 AM

GeneralDo it the Explorer way Pinmembermacerenn6:09 10 Oct '07  
GeneralRe: This is "source-code-style, not actual code" Pinmembermacerenn6:12 10 Oct '07  
Questionhow to register dll PinmemberSwapnil9634:57 26 Aug '07  
AnswerRe: how to register dll Pinmembermacerenn6:20 10 Oct '07  
GeneralPath name with spaces Pinmemberjung-kreidler5:50 4 Jul '07  
GeneralRe: Path name with spaces Pinmemberjdperk9:47 8 Aug '07  
Questiondll registration Pinmembertras200719:39 24 May '07  
Questionhow can register activex dll for all network user machine or domain controller machine Pinmemberjohn sevillano11:40 12 Sep '06  
Questionwhere exactly does the ""s is added to? PinsussAnonymous6:14 26 Oct '05  
GeneralI don't have them folders PinsussAnonymous16:18 6 Sep '05  
GeneralRe: I don't have them folders PinmemberEauthanizor9:44 28 Dec '05  
GeneralWorks better as "regsvr32.exe %1" PinsussAnonymous17:52 25 Aug '05  
Generalimage link PinsussAnonymous5:42 26 Oct '03  
QuestionDuplicate? PinmemberMatthew Berry22:59 12 May '03  
QuestionSame thing for COM EXEs? PinmemberJosh Hidley15:34 5 May '03  
GeneralBroken Image Links PinmemberSoftomatix15:29 5 May '03  
GeneralI want more... PinmemberErnest Laurentin14:34 5 May '03  

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
Web01 | 2.5.120210.1 | Last Updated 5 May 2003
Article Copyright 2003 by Eauthanizor
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid