regsvr32

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] regsvr32 requires privilege escalation.[4]

regsvr32
Developer(s)Microsoft, ReactOS Contributors
Initial releaseFebruary 17, 2000 (2000-02-17)
Operating systemWindows, ReactOS
Platform32-bit and 64-bit
TypeCommand
LicenseWindows: Proprietary commercial software
ReactOS: GNU General Public License
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32

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

The regsvr32 command is comparable to ldconfig in Linux.

Example usage

regsvr32 shmedia.dll for registering a file

regsvr32 shmedia.dll /s for registering a file without the dialog box ( silent )

regsvr32 /u shmedia.dll for unregistering a file

regsvr32 shmedia.dll /u /s 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:

regsvr32 .\shmedia.dll

References

Further reading

  • John Paul Mueller (2007). Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000. John Wiley & Sons. ISBN 978-0470165799.
  • Stanek, William R. (2008). Windows Command-Line Administrator's Pocket Consultant, 2nd Edition. Microsoft Press. ISBN 978-0735622623.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.