How to use the Regsvr32 tool and troubleshoot Regsvr32 error messages

If this article does not describe the error message that you are receiving, you can obtain detailed error message explanations, recommended actions, and additional support resources from the TechNet Events and Errors page. 

Summary

Regsvr32 is a command-line utility to register and unregister OLE controls, such as DLLs and ActiveX controls in the Windows Registry. Regsvr32.exe is installed in the %systemroot%\System32 folder in Windows XP and later versions of Windows.


Note On a 64-bit version of Windows operating system, there are two versions of the Regsv32.exe file:
  • The 64-bit version is %systemroot%\System32\regsvr32.exe.
  • The 32-bit version is %systemroot%\SysWoW64\regsvr32.exe.

The syntax of the Regsvr32 command

RegSvr32.exe has the following command-line options:
Regsvr32 [/u] [/n] [/i[:cmdline]] <dllname>

/u - Unregister server

/i - Call DllInstall passing it an optional [cmdline]; when it is used with /u, it calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i

/s – Silent; display no message boxes

Common solutions for Regsvr32 errors

Try one of the following methods when you receive a Regsvr32 error:
  • Method 1: Re-run the Regsvr32 command from an elevated command prompt

    To open an elevated command prompt, following these steps:
    Windows 8.1 and Windows 8
    Swipe in from the right edge of the screen, and then tap Search. Or, if you are using a mouse, point to the lower-right corner of the screen, and then click Search. Type Command Prompt in the Search box, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
    Windows 7 and Windows Vista
    Click Start, type Command Prompt or cmd in the Search box, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
    Windows XP
    Log on with an administrator account or an account that has administrator permissions, and then open a Command Prompt window.
  • Method 2: Use the 32-bit version of Regsvr32 to register a 32-bit DLL on a 64-bit version of Windows

    If you receive an error when registering a 32-bit DLL on a 64-bit version of Windows, follow these steps:
    1. Open an elevated command prompt.
    2. If the 32-bit DLL is in the %systemroot%\System32 folder, move it to the %systemroot%\SysWoW64 folder.
    3. Run the following command:
      %systemroot%\SysWoW64\regsvr32 <full path of the DLL>

Regsvr32 error messages

Regsvr32 error messages in Windows Vista and later versions of Windows
Regsvr32.exe error messages in Windows XP
Properties

Article ID: 249873 - Last Review: 14 আগস্ট, 2015 - Revision: 1

ফীডব্যাক