regsvr32

{{lowercase}}

{{Infobox Software

| name = regsvr32

| logo =

| screenshot =

| screenshot size =

| caption =

| developer = Microsoft, ReactOS Contributors

| released = {{Start date and age|2000|02|17}}

| latest release version =

| latest release date =

| operating system = Windows, ReactOS

| platform = 32-bit and 64-bit

| genre = Command

| license = Windows: Proprietary commercial software

ReactOS: GNU General Public License

| website = {{URL|https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32}}

}}

In computing, regsvr32 (Register Server) is a command-line utility in Microsoft Windows and ReactOS{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/system/regsvr32/regsvr32.c|title=Reactos/Reactos|website=GitHub|date=3 November 2021}} for registering and unregistering DLLs and ActiveX controls in the operating system Registry.{{cite web|url=https://technet.microsoft.com/en-us/library/bb490985.aspx|title=Regsvr32|work=TechNet|publisher=Microsoft}} 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).[https://support.microsoft.com/en-us/help/249873/how-to-use-the-regsvr32-tool-and-troubleshoot-regsvr32-error-messages How to use the Regsvr32 tool and troubleshoot Regsvr32 error messages:], Microsoft, 14 August 2015. Accessed 2019-02-10. regsvr32 requires elevated privileges.[https://ss64.com/nt/regsvr32.html Regsvr32 - Register a DLL - Windows CMD - SS64.com]

To be used with regsvr32, a DLL must export the functions DllRegisterServer and DllUnregisterServer.{{cite web|url=http://support.microsoft.com/kb/207132|title=INFO: How Regsvr32.exe Registers and Unregisters COM DLLs|date=March 24, 2009|work=Support|publisher=Microsoft |archive-url=https://web.archive.org/web/20150313171941/http://support.microsoft.com:80/en-us/kb/207132 |archive-date=2015-03-13 |url-status=dead}}

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

{{Reflist}}

Further reading

  • {{Cite book|author=John Paul Mueller|year=2007|title=Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000|publisher=John Wiley & Sons|isbn=978-0470165799}}
  • {{Cite book|first=William R.|last=Stanek|year=2008|title=Windows Command-Line Administrator's Pocket Consultant, 2nd Edition|publisher=Microsoft Press|isbn=978-0735622623}}