From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In computing, regsvr32 (Microsoft Register Server) is a command-line utility in Microsoft Windows operating systems for registering and unregistering DLLs and ActiveX controls in the Windows Registry.[1]

To be used with regsvr32, a DLL must export the functions DllRegisterServer and DllUnregisterServer.[2]

regsvr32 in Windows is comparable to ldconfig in Linux.

Example usage[edit]

regsvr32 shmedia.dll for registering a file

regsvr32 /u shmedia.dll for unregistering a file

If another copy of shmedia.dll exists in the system search path, regsvr32 may choose that copy instead of the one in the current directory. This problem can usually be solved by specifying a full path (e.g., c:\windows\system32\shmedia.dll) or using the following syntax:

regsvr32 .\shmedia.dll


  1. ^ "Regsvr32". TechNet. Microsoft.
  2. ^ "INFO: How Regsvr32.exe Registers and Unregisters COM DLLs". Support. Microsoft. March 24, 2009.

External links[edit]