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

247 questions
103
votes
15 answers

How do I register a DLL file on Windows 7 64-bit?

I have tried to use the following code: cd c:\windows\system32 regsvr32.exe dllname.ax But this is not working for me. How can I register a DLL file on Windows 7 with a 64-bit processor?
Rajkumar Reddy
  • 2,289
  • 6
  • 21
  • 29
71
votes
3 answers

Windows 7: unable to register DLL - Error Code:0X80004005

When I tried to register a COM DLL, regsvr32 rpcrt4.dll I get the following error message: `The module "c:\windows\system 32\"rpcrt4.dll" was loaded but the call to DllRegisterServer failed with error code 0X80070006. How do I fix this problem?…
dotnet-practitioner
  • 13,158
  • 35
  • 123
  • 195
63
votes
2 answers

dllregisterserver in iviewers failed

When I try to run Oleview I get an error saying that DllRegisterServer failed for IViewer.dll (sorry I wanted to post a screenshot but I can't until I get 10 reputation =p) Oleview will run but like the msg says, you can't look at interfaces which…
Guybrush Threepwood
  • 1,631
  • 2
  • 11
  • 8
55
votes
8 answers

Register comdlg32.dll gets Regsvr32: DllRegisterServer entry point was not found

I have Windows 7, 64-bit. I'm trying to register a .dll (comdlg32.dll) using regsvr32. But I get an error that says the dll is read but the DLLRegistryServer entry point is not found. I have run the command under both System32 and SysWOW64 and I…
disasterkid
  • 5,942
  • 17
  • 69
  • 148
49
votes
4 answers

Visual Studio: Run C++ project Post-Build Event even if project is up-to-date

In Visual Studio (2008) is it possible to force the Post-Build Event for a C++ project to run even if the project is up-to-date? Specifically, I have a project which builds a COM in-process server DLL. The project has a post-build step which runs…
user200783
  • 12,313
  • 10
  • 58
  • 110
31
votes
3 answers

RegSvr32 exit codes documentation?

I played with RegSvr32.exe to register a COM Server and got next exit codes: 0 - when registering properly normal DLL Com Server 3 - when try registering fake DLL Com Server (simple text file renamed to .DLL 4 - when try registering simple DLL, not…
ALZ
  • 1,827
  • 2
  • 22
  • 41
19
votes
4 answers

The module ".dll" was loaded but the entry-point was not found

I have a DLL which cause to an error when I run the application. The error says that the service is not registered. So I run command regsvr32 with the name of the DLL. But it gives me an error, now the error is: The module 'mydll.dll' was loaded…
st mnmn
  • 3,295
  • 3
  • 22
  • 32
15
votes
2 answers

How do I register a .NET COM DLL with Regsvr32?

I have a VB6 application that uses a COM DLL. The DLL is written in C#. In the C# project properties I have the "Register for COM interop" option checked. The VB6 app works fine on my development machine. The C# code follows this format exactly:…
Mike Webb
  • 8,305
  • 18
  • 74
  • 108
14
votes
5 answers

How to generate type library from unmanaged COM dll

I have to use third party, unmanaged COM dll into my .NET application. I need to modify this assembly to produce a custom RCW. In order to Edit Interop Assembly I need the type library of the particular assembly. Can any one explain me that how to…
RoboAlex
  • 4,518
  • 5
  • 27
  • 36
14
votes
3 answers

What does regsvr32 filename.ax actually do?

regsvr32 filename.ax I just see it said something installed successfully,but what's the whole story?
wamp
  • 5,273
  • 13
  • 50
  • 80
14
votes
3 answers

How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work?

Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run: c:\regsvr32 /u Amazing.dll beforehand…
Charlotte Skardon
  • 6,075
  • 2
  • 28
  • 40
11
votes
5 answers

How do I check if a COM dll is registered in C#

I created a Office Add-In in VS 2008, C#, .NET 3.5, and VSTO. It is deployed via ClickOnce. A run-time configuration form executes regsvr32 to register "fooapi.dll" included with the project that can not be registered during instal due to ClickOnce…
Jay
  • 288
  • 3
  • 13
11
votes
3 answers

Unregister DLL using regsvr32

This is driving me nuts. I registered a DLL (COM) using regsvr32 blabla.dll In the meantime, I deleted this DLL manualy from disk. How can I unregister this dll? I know the CLSID. Edit: Apparently I need to delete this from the registry. What…
Kugel
  • 17,248
  • 12
  • 64
  • 100
10
votes
4 answers

What permissions/rights are needed to run regsvr32 /s /c "myocx.ocx"

I have a WindowsXP configured as a build machine. The build process runs under an account which isn't an administrator. Some projects register as a last step an ocx control with something like regsvr32 /s /c ".\debug\myocx.ocx" This step fails…
Christian Rodemeyer
  • 1,972
  • 1
  • 17
  • 21
10
votes
5 answers

REGSVR32: the module "xxxxx.dll" failed to load ... dependent assembly could not be found

I'm having an issue with regards to registering a *.dll under Windows 7 x64. I've tried placing the *.dll in both, C:/Windows/System32 and C:/Windows/SysWOW64 and attempting to register with "regsvr32 xxxxx.dll" under an elevated command prompt. I…
Alfie J. Palmer
  • 807
  • 2
  • 15
  • 29
1
2 3
16 17