In computing, <code>regsvr32</code> (Register Server) is a command-line utility in Microsoft Windows and ReactOS for registering and unregistering DLLs and ActiveX controls in the operating system Registry. 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). <code>regsvr32</code> requires elevated privileges.
To be used with <code>regsvr32</code>, a DLL must export the functions <code>DllRegisterServer</code> and <code>DllUnregisterServer</code>.
The <code>regsvr32</code> command is comparable to <code>ldconfig</code> in Linux.
<code>regsvr32 shmedia.dll</code> for registering a file
<code>regsvr32 shmedia.dll /s </code> for registering a file without the dialog box ( silent )
<code>regsvr32 /u shmedia.dll</code> for unregistering a file
<code>regsvr32 shmedia.dll /u /s </code> for unregistering a file without the dialog box ( silent )
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:
<code>regsvr32 .\shmedia.dll</code>