regsvr32

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

regsvr32
Developer(s)Microsoft, ReactOS Contributors
Operating systemMicrosoft Windows, ReactOS
Platform32-bit and 64-bit
TypeCommand

In computing, regsvr32 (Register Server) is a command-line utility in Microsoft Windows and ReactOS[1] for registering and unregistering DLLs and ActiveX controls in the operating system Registry.[2] Despite the suffix "32" in the name of the file, there are both 32-bit and 64-bit versions of this utility (with identical names, but in different directories).[3]

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

The regsvr32 command 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

References[edit]

  1. ^ https://github.com/reactos/reactos/blob/master/base/system/regsvr32/regsvr32.c
  2. ^ "Regsvr32". TechNet. Microsoft.
  3. ^ How to use the Regsvr32 tool and troubleshoot Regsvr32 error messages:, Microsoft, 14 August 2015. Accessed 2019-02-10.
  4. ^ "INFO: How Regsvr32.exe Registers and Unregisters COM DLLs". Support. Microsoft. March 24, 2009.

Further reading[edit]

External links[edit]