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
3
votes
2 answers

Runtime C# knowing if 32-bit or 64-bit version of COM Interface is being used

I want to build a DLL Class Library use COM Interop, with C#, target ANY CPU, and register it as 32-bit and 64-bit interfaces. I want to be able to, at runtime, display what interface was used - if I am using the 32-bit version, or 64-bit…
Jason
  • 16,739
  • 23
  • 87
  • 137
3
votes
2 answers

How can I hide DLL registration message window in my application?

I'm registering a dll at startup of my application by this command: System.Diagnostics.Process.Start("regsvr32",strPath); and after running this line of code , a window appears that says DLL registration was successful or not . My question is that…
Shima.Y
  • 373
  • 4
  • 9
  • 18
3
votes
2 answers

Descriptions of error codes returned by regsvr32

Where can I find documentation that describes the meaning of error codes returned by regsvr32, such as 0x80070716?
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
3
votes
1 answer

Automated Installation of DCOM and configuration of its launch settings

I have a 3rd party DCOM component that I need to install and configure its launch settings in an automated way within my installer (no user intervention). I'm using regsvr32.exe for .dll registration and using powershell for setting up the launch…
3
votes
1 answer

Unable to register the C# dll as a COM Component, The module was loaded but the entry-point DLLRegisterServer was not found

I have created a class and made it com visible: [ComVisible(true)] [Guid("FD909333-3CD0-477F-8A7E-B8045B0B84EC")] [ClassInterface(ClassInterfaceType.None)] [ProgId("TestComApp.TestApp.TestClass")] public class TestClass:ITestCom …
Simsons
  • 12,295
  • 42
  • 153
  • 269
3
votes
1 answer

Remote DLL Registration without access to HKEY_CLASSES_ROOT

We have a legacy VB6 application that updates itself on startup by pulling down the latest files and registering the COM components. This works for both local (regsvr32) ActiveX COM Components and remote (clireg32) ActiveX COM components registered…
Mike Ohlsen
  • 1,900
  • 12
  • 21
3
votes
3 answers

difference between regsvr32 with /i and without parameter

I am able to register a COM-DLL (written in VB6) dowFct.dll succesfully with regsvr32 dowFct.dll But when I try to do it with regsvr32 dowFct.dll /i I am getting the Error (translated from german to english): The module dowfct.dll was loaded but…
BennoDual
  • 5,865
  • 15
  • 67
  • 153
3
votes
0 answers

How to unregister deleted DLL?

How should a DLL be unregistered if it has been deleted? regsvr32 /u requires the DLL to exist. What if is has been deleted already? What is the best way to remove the registry entries in this situation?
CJ7
  • 22,579
  • 65
  • 193
  • 321
3
votes
4 answers

Do I need to register the COM dll to be able to reference it on the .NET project?

I'm trying to reference a COM dll in visual studio by using the Browse tab and selecting the DLL. I noticed that if the DLL is registered on the system with regsvr32 I can reference it, but if it's not registered I receive an error selecting the dll…
pauloya
  • 2,535
  • 3
  • 30
  • 50
3
votes
2 answers

How to register a 64-bit COM dll on 64-bit Windows 7?

I'm trying to register an x64 COM server dll for use in x64 office on x64 windows 7. I have followed the instructions here but I cannot register the dll. When I attempt to I get the following error: The command I use is regsvr32…
Pat Mustard
  • 1,852
  • 9
  • 31
  • 58
3
votes
1 answer

Register DLL using RegSvr32 in Java - How to hide alert appear

I'm having a problem with dll registration by RegSvr32. Everything is done programmatically under Java before applications starts. My question is: Is there any solution to disable alert appear with result of DLL registration? It's a prompt with "OK"…
Mister S
  • 203
  • 1
  • 7
  • 14
3
votes
1 answer

Trying to register a dll but getting error DllRegisterServer entry point was not found

I have a .net assembly dll which i am trying to register using regsvr32, but get the following error: "dll loaded but DllRegisterServer entry point was not found " getting this error while registering the other dlls also.
jyothis
  • 49
  • 2
  • 3
  • 7
3
votes
2 answers

Registering both 32bit and 64bit DLLs

I'm refering to this thread How do I install both 32-bit and 64-bit versions of a COM DLL and "auto-select"? we have exactly the same situation. A namespace extension Dll 32bit and 64bit with same CLSID App ID out of the same project. Now…
Jesse James
  • 31
  • 1
  • 3
2
votes
0 answers

C++ COM DLL built in debug cannot be registered when depending on another C++ COM DLL built in release and vice versa

I am attempting to register a Visual C++ COM DLL that I have built with a debug configuration. This COM DLL depends on another Visual C++ COM DLL that was built with a release configuration. Both DLLs are being registered with regsvr32 (the release…
Jellyamp
  • 21
  • 2
2
votes
1 answer

Register an exe file as OLE server with Inno Setup

I want to register an EXE file as OLE server with Inno Setup. When I use my EXE file path with Regserver parameter in cmd, everything is correct. But when I use the regserver flag in Inno Setup like this: Source: "{src}\App\MyApp.exe"; DestDir:…
sina
  • 331
  • 4
  • 12