65.9K
CodeProject is changing. Read more.
Home

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

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.44/5 (9 votes)

May 5, 2003

viewsIcon

584108

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