Basic COM   «Prev 

In-process COM servers: Registering and unregistering COM objects

RegSvr32

Register To register the COM classes (types of COM objects) implemented by a COM server, run RegSvr32 from the command line. It takes the name of the DLL, using full or relative path name, housing the in-process server as a command-line argument. RegSvr32 loads the DLL and calls DllRegisterServer. In response, the DLL registers its COM classes. For example, RegSvr32 MyComSvr.dll registers COM classes implemented in MyComSvr.dll.
Unregister To unregister a server's COM classes, run RegSvr32 using command-line flag /u, passing in the path to the DLL on the command line. RegSvr32 will load the DLL and call DllUnRegisterServer in the DLL. For example, RegSvr32 /u MyComSvr.dll unregisters COM classes in MyComSvr.dll. RegSvr32 is usually found in the DevStudio\SharedIDE\bin directory. It may be in a different location on your system.

Regsvr32 is a command-line utility to register and unregister OLE controls, such as DLLs and ActiveX controls in the Windows Registry.
Regsvr32.exe is installed in the
 %systemroot%\System32 folder in Windows XP and later versions of Windows. 
Note On a 64-bit version of Windows operating system, there are two versions of the Regsv32.exe file:
The 64-bit version is %systemroot%\System32\regsvr32.exe.
The 32-bit version is %systemroot%\SysWoW64\regsvr32.exe.
Support for Windows XP has ended
Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options.

COM Programming with Microsoft .NET