Register and unregister a DLL

How to register  and unregister a DLL?

It is possible that your application requires this DLL to be on the search path. In this case you could move it to

\WINDOWS\system32

Or the application requires it to be in the application directory.

Now to register it, you need to move to the directory where the DLL is located and use the commandline

start >> Run >> type CMD and enter

now command prompt will dispaly.

Syntax:

REGSVR32 [/U] [/S] [/C] [/I:[Command_Line]] DLL_Name

 REGSVR32 [/U] [/S] [/C] /N /I:[Command_Line] DLL_Name

Key

/u                   -      Unregister Server.

/s Silent         -       no dialogue boxes

/c                   -      Console output.

/n                  -       Don’t call DllRegisterServer

/i                   -        Call DllInstall (or DllUninstall if /u is specified)

Command_Line An optional command line for DllInstall.

Example:

for example : i will show how to register and unregister the sslcom.dll

register the DLL in system32

un register the dll >

c:\>windows\system32\regsvr32  sslCom.dll /u /s    

register the dll >  

c:\>windows\system32\regsvr32 sslCom.dll                  

register the DLL

Or you need to move to the directory where the DLL is located and use the commandline 

register the DLL in application located path

d:\>Application path\regsvr32 sslCom.dll

(whenever you register the DLL ,before unregister is necessary)

3 Responses to “Register and unregister a DLL”


Leave a Reply