regsvr32

From Wikipedia, the free encyclopedia

regsvr32 is a command-line utility in Microsoft Windows operating systems for registering and unregistering DLLs and ActiveX controls in the Windows Registry.

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

[edit] Example usage

regsvr32 foo.dll for installing a file

regsvr32 /u foo.dll for uninstalling a file

If another copy of foo.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:\temp\foo.dll) or using the following syntax:

regsvr32 .\foo.dll

[edit] References