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)

Advertisements

3 thoughts on “Register and unregister a DLL

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s