Beruflich Dokumente
Kultur Dokumente
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
Sign in
Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software
updates and security options. Learn what this means for you and how to stay protected.
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 theTechNet
Events and Errorspage.
Summary
Regsvr32 is a commandline 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 64bit version of Windows operating system, there are two versions of the Regsv32.exe file:
The 64bit version is %systemroot%\System32\regsvr32.exe.
The 32bit version is %systemroot%\SysWoW64\regsvr32.exe.
1/7
11/25/2016
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
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 32bit version of Regsvr32 to register a 32bit DLL on a 64bit
version of Windows
If you receive an error when registering a 32bit DLL on a 64bit version of Windows, follow these
steps:
1. Open an elevated command prompt.
2. If the 32bit DLL is in the %systemroot%\System32 folder, move it to the
%systemroot%\SysWoW64 folder.
3. Run the following command:
%systemroot%\SysWoW64\regsvr32<fullpathoftheDLL>
Cause
2/7
11/25/2016
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
Error message
Cause
Cause
Unrecognized flag:
/invalid_flag
https://support.microsoft.com/enus/kb/249873
3/7
11/25/2016
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
The specified Dll name is not a .dll or .ocx file. For example, typing
regsvr32 wjview.exe generates this error message.
Dll_Name is not an
executable file and no
registration helper is
registered for this file type.
The specified Dll name is not an executable file .exe, .dll, or .ocx.
For example, typing regsvr32 autoexec.bat generates this error
message.
OleInitialize failed or
OleUninitialize failed
Regsvr32 must initialize the COM library before it can call needed
COM library functions and uninitialize the library when it shuts
down. These error messages occur if an attempt to initialize or
uninitialize the COM library is unsuccessful. For example, the
Ole32.dll file may be corrupted or may be the wrong version.
LoadLibrary"Dll_Name"
failed. GetlastError returns
0x00000485
LoadLibrary"Dll_Name"
failed. GetLastError returns
0x00000002
LoadLibrary"dskmaint.dll"
failed. GetLastError returns
0x000001f
DllRegisterServer or
DllUnregisterServerin
Dll_Name failed. Return
code was: string
Search the Winerror.h file for the string that is specified in the
message.
Properties
Article ID: 249873 Last Review: 08/14/2015 07:16:00 Revision: 15.0
https://support.microsoft.com/enus/kb/249873
Applies to
4/7
11/25/2016
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
Applies to
Windows 10 Pro, released in July 2015, Windows 10 Enterprise, released in July 2015, Windows Vista
Enterprise, Windows Vista Business, Windows Vista Home Basic, Windows Vista Home Premium,
Windows Vista Ultimate, Microsoft Windows XP Home Edition, Microsoft Windows XP Media Center
Edition 2005 Update Rollup 2, Microsoft Windows XP Professional, Microsoft Windows XP Tablet PC
Edition, Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 Home Premium, Windows 7
Professional, Windows 7 Ultimate, Windows 8, Windows 8 Enterprise, Windows 8 Pro, Windows 8.1,
Windows 8.1 Enterprise, Windows 8.1 Pro
Keywords:
kbresolve kbenv kberrmsg kbinfo kbkern32dll KB249873
Support
Security
Contact Us
https://support.microsoft.com/enus/kb/249873
Trademarks
2016 Microsoft
5/7
11/25/2016
https://support.microsoft.com/enus/kb/249873
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
6/7
11/25/2016
https://support.microsoft.com/enus/kb/249873
HowtousetheRegsvr32toolandtroubleshootRegsvr32errormessages
7/7