Skip navigation

Tag Archives: Windows 2000

Dynamic Link Library (DLL) or OLE Control eXtension (OCX) file is a shared library concept in Microsoft Windows operating system.

These libraries are set of functions that shared and called by various applications and then utilized by those those application.

Software vendors include their own DLL/OCX file upon installing their software and it is self-registering.

But this time we have to manually registering an DLL/OCX file.

For example we have an created are own DLL/OCX file that have different functions.

We can do this via “RegSvr32” tool.

Usage:

regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname

Parameters:

/u – Unregister server
/s – Silent; display no message
/i – Call DllInstall passing it an optional [cmdline];
when used with /u calls dll uninstall
/n – do not call DllRegisterServer;
this option must be used with /i
dllname – the name of the dll, including the path

Example:

regsvr32 c:\winnt\system32\<sample_dll>

Now, how do we execute this command?

Open an Command Prompt and enter the command.

or

Go to START > Run and enter the command.

or

Press Window+R to open and run window, then enter the command.