Questions tagged [regsvr32]

You can use the Regsvr32 tool (Regsvr32.exe) to register and unregister OLE controls such as DLL or ActiveX Controls (OCX) files in the Windows Registry.

From Microsoft Support's Article ID: 249873:

Regsvr32.exe is included with Microsoft Internet Explorer 3.0 or later versions, Windows 95 OEM Service Release 2 (OSR2) or later versions, and Windows NT 4.0 Service Pack 5 (SP5) or later versions. Regsvr32.exe is installed in the System (Windows Me/Windows 98/Windows 95) or System32 (Windows NT/Windows XP/Windows Vista/Windows 7) folder.

Note: On a 64-bit version of a 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

Usage

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 used with /u calls dll uninstall
/n - Do not call DllRegisterServer; this option must be used with /i
/s - Silent; display no message boxes (added with Windows XP and Windows Vista)

When you use Regsvr32.exe, it attempts to load the component and call its DLLSelfRegister function. If this attempt is successful, Regsvr32.exe displays a dialog box that indicates success. If the attempt is unsuccessful, Regsvr32.exe returns an error message.

For example, to manually register a Sample.ocx ActiveX control, type the following command at the command prompt:

c:\regsvr32.exe sample.ocx

For more information, see How to Register a DLL

251 questions
2
votes
2 answers

regsvr32 error: the module was loaded but the entry point was not found

People here use an old compiled VB program, the last version is 16 years old. It works on some machines but not on others, all with the same 1709 version and updates of Windows 10. Where it does not work a message says either that msdatlst.ocx or…
Clodoaldo Neto
  • 118,695
  • 26
  • 233
  • 260
2
votes
0 answers

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x5

I want to install the latest TeXnicCenter on Windows 7 Professional (64-Bit). But everytime I run the installer with admin rights I get the message: "C:\Windows\system32\msxml4.dll Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x5.…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
2
votes
2 answers

OCX AfxOleRegisterTypeLib fails with error 0x80040200

I upgraded an OCX library from VS2010/Win7 to VS2019/Win10. The project builds, however when I try and use RegSvr32.exe from an elevated command prompt, I receive error 0x0040200. I did a bit of debugging and the offending call is the call to…
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
2
votes
0 answers

InteropServices.COMException - Class not registered

I'm having some problems in using a type that comes from an old unmanaged DLL. gobjDPProject = New DP_Store_21.cProject When I make this assignment an exception is threw A first chance exception of type…
Pickeroll
  • 908
  • 2
  • 10
  • 25
2
votes
1 answer

how to register com components inside docker as regsvr32 command executes successfully but the com components are not getting registered?

We have deployed our .net application along with some COM components in docker but when we are trying to register COM dlls using regsvr32 the command gets executed without any error. But when we search for the CLS ID in the registry it is not…
Abinash Panda
  • 343
  • 1
  • 2
  • 16
2
votes
2 answers

DllRegisterServer failed with error code 0x80004005 when registering Visual Fox Pro

When I try to register a Visual FoxPro DLL via an administrator command prompt: C:\Windows\SysWOW64>regsvr32 C:\_temp\my.dll on machines that are not mine I get the following error: The module "c:\_temp\my.DLL" was loaded but the call to …
spottedmahn
  • 14,823
  • 13
  • 108
  • 178
2
votes
3 answers

Using a custom DirectShow filter (DLL, registered)

I've written a small transform filter (derived from TransInPlaceFilter baseclass), and managed to make it work properly in a Directshow graph, entirely coded in C++. I basically followed the 5 first steps described on MSDN, and the last part of the…
fulguroblastor
  • 606
  • 5
  • 11
2
votes
1 answer

How to register both the Win32 and x64 version of an OCX control on single computer

Just when I thought I understood Microsoft's confusing naming with regard to WIN32 and WIN64 registry and folders I read this article (Using 32-bit or 64-bit ActiveX Components on x64 Windows) and find myself still a bit confused on how to properly…
JonN
  • 2,498
  • 5
  • 33
  • 49
2
votes
1 answer

NSIS register DLL with regsvr32

I'm trying to register DLL with regsvr32 in nsis installer (no silent at the moment): Exec '"$SYSDIR\regsvr32.exe" "$SYSDIR\mp4mux.dll"' Exec '"$SYSDIR_32bit\regsvr32.exe" "$SYSDIR_32bit\mp4mux.dll"' It shows pop-up that DLL was registered (both…
DDovzhenko
  • 1,295
  • 1
  • 15
  • 34
2
votes
2 answers

Having problems registering and using a 64-bit C++ written ATL dynamic library

I am having issues registering and using a dynamic library under Windows 7 x64, the 64-bit version of dll compiles but the compiler log outputs: Error MSB3073: The command "RegSvr32 /S "...\x64\Debug\xxxxx.dll" exited with code 3. But, when I…
GTAVLover
  • 1,407
  • 3
  • 22
  • 41
2
votes
0 answers

Not able to register a third party DLL even with elevated rights

I have been trying to register a third party dll file using the regsvr32 command, but it keeps giving me the error "The module "test.dll" was loaded but the call to DLLRegisterServer failed with error code 0x80004005." I am running it with elevated…
2
votes
1 answer

Module comctl32.ocx failed to load in Windows 10 Home

I have an old VB 6 app that someone is trying to install. The user is trying to register Comctl32.ocx. The file is in C:\windows\system32. The user has Windows 10 Home. When trying to register using: Regsvr32 c:\windows\system32\comctl32.ocx…
Joe
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

Cannot register AX module

I try to register a 64-bit DirectShow filter (*64.AX) in my 64bit Windows 8.1 with regsvr32 MyDirectShowFilter64.ax and it gives me the following error message Registering 32bit Filter (*32.ax) works flawlessly: regsvr32…
Sloothword
  • 349
  • 1
  • 10
2
votes
1 answer

InnoSetup Script installing VC redistributables and registering VC OCX resulting in "RegSrv32 failed with exit code 0x1"

My InnoSetup Script needs to install the VC redistributables (vcredist_x86.exe) but also registers an OCX relying on the redist package. I wasn't able to have the package installed prior to the regsrv32 call, so on a virgin system it always results…
thomiel
  • 2,467
  • 22
  • 37
2
votes
3 answers

Using regsvr32, do you need to unregister a dll or ocx before registering it again?

Using regsvr32, do you need to unregister a dll or ocx before registering it again? Or will registering it do that anyway?
CJ7
  • 22,579
  • 65
  • 193
  • 321