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
4
votes
1 answer

Inno Setup: Run regsvr32 with a specific working directory

I'm trying to register a number of DLL's as part of my installer. I'm using the regserver flag, and it works perfectly for most of the DLL's. However, one DLL fails to register. It tries to load other DLL's and fails if it can't find them in the…
Grhm
  • 6,726
  • 4
  • 40
  • 64
4
votes
2 answers

ATL COM DLL REGISTER ERROR 0x80070716

I am getting an error 0x80070716 when regsvr32 is done with the ATL Dll x64, under Win7 x64. I made a search before putting the question, and verfying with some threads in other web sites like this one…
FreeDev
  • 131
  • 3
  • 11
4
votes
3 answers

How to register COM libraries at runtime?

Let's say I'm developing an application that installs COM component and installer registers them. This works great. Now the software is required to run from a memory stick. How can I register my libraries runtime and make sure, that the registry is…
John Smith
  • 4,402
  • 4
  • 32
  • 34
4
votes
1 answer

Register Embedded DirectShow filter

I am working on an application at the moment that plays back video with a DirectShow filter. The application is written in WPF and is using MediaElements to play the video. As long as the DirectShow filter is registered the video will play. At the…
thecaptain0220
  • 2,098
  • 5
  • 30
  • 51
4
votes
1 answer

Even after running Regsvr32, I get aximp error

I have a 32-bit ActiveX control written in C++. When trying to import it to .Net app using aximp on a 64 bit machine, it gives AxImp Error: Did not find a registered ActiveX control in 'xxx.dll'. I get the same error even after running regsvr32 on…
Sid
  • 41
  • 1
  • 2
4
votes
1 answer

Retrieving the COM class factory for component with CLSID {xxxx} failed due to the following error: 80040154

I'm upgrading a VB6 app to VB.Net. It used the "Adobe Acrobat 10.0 Type Library". However, when using with the .Net project I'm getting the error in the title. I created a small test project. The exception is thrown when I try to instantiate an…
dbr
  • 247
  • 2
  • 7
  • 24
4
votes
2 answers

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0xC0000005 with Inno Setup 5.2.3

I am trying to register a COM DLL using Inno Setup in a setup package I created. During test installations on Vista, I get this error: Unable to register the DLL/OCX: RegSvr32 failed with exit code 0xC0000005 I click "Ignore" and my application…
robodale
4
votes
1 answer

Using DirectShow c++'s API with C# (COM component)

I am developing a Windwos form application using Directshow. At start I was using Quarts.dll located in windows/system32 in purpose of getting the basic API of Directshow. After a while I realized I need the whole API of Directshow, because I need…
Matan Givoni
  • 1,080
  • 12
  • 34
4
votes
2 answers

how to debug a 64 bit dll registration process made with regsvr32.exe?

i have Run time Error 216 at ADDRESS when registering a 64 bit dll built with Delphi XE2 (I have Update 3). from command prompt I do (note: system32 folder contains the 64bit exe!) c:\windows\system32\regsvr32.exe My64bitdll.dll and after a "dll…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
3
votes
3 answers

Unable to register dll using regsvr32:The module "*.dll" failed to load

There is a similar question from stackoverflow. But I didn't find that the answer is helpful. I also used Google searched the websites, I have watched here and here. I have tried the method they told to solve this problem but not got a satisfied…
3
votes
2 answers

Unregistering a COM dll using regsvr32

I've registered a COM dll using the regsvr32 command and I forgot the exact location of the assembly from where I did it. Now I'm facing trouble to unregister the dll. How I can unregister it? I tried using the /u switch from other locations of the…
VJAI
  • 32,167
  • 23
  • 102
  • 164
3
votes
1 answer

whats is the difference between regsvr32 and GAC?

Whats is the difference between regsvr32 and GAC? Of course regsvr32 is for COM and GAC is for .net assemblies but is that the only difference?
Neel
  • 1,901
  • 4
  • 19
  • 31
3
votes
1 answer

What does the undocumented /c option do in regsvr32

I am updating a native C++ DLL with COM components from Visual Studio 6.0 to Visual Studio 2019. The original project has a post build event to register the the DLL regsvr32 /s /c my.dll Looking at the help screen for regsvr32 the /c option is not…
JonN
  • 2,498
  • 5
  • 33
  • 49
3
votes
1 answer

regsvr32, should i unregister before register again?

Scenario: I installed the COM dll on client machine in c:\program.dll and invoked the following command to register: regsvr32 "c:\program.dll" I updated the dll with a new version, in the same directory as the installation…
Vinicius Gonçalves
  • 2,514
  • 1
  • 29
  • 54
3
votes
2 answers

How to get an ActiveX component's registered path

I've got a registered ActiveX component which I'm referencing in a C# project. However, I'd like to know the original path to the actual component being run. This is not the execution path per se. Is there something saner than searching the registry…
MPelletier
  • 16,256
  • 15
  • 86
  • 137
1 2
3
16 17