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
0
votes
0 answers

How overwrite the copy handler of the windows explorer without UAC

I have see Teracopy and CopyHandler, intercept the copy by overwrite copy handler. But in my case, that's wakeup the UAC. The code used:…
0
votes
1 answer

side-by-side configuration issure in an windows azure virtual machine

I'm doing a experiment on purpose of making a executable program work on windows azure. First i tried to make it work using remote desktop with windows azure roles(ref http://msdn.microsoft.com/en-us/library/windowsazure/gg443832.aspx), I copied my…
Jack
  • 3
  • 1
0
votes
1 answer

64 bit explorer plugin registration issue

I wrote a COM Dll for explorer that extends windows context menu, registration via regsvr32 works fine on 32 bit Windows, but on 64 bit it does not work without any clue. regsvr32 reports successful registration, although Dll is not working. I tried…
user1138436
  • 31
  • 1
  • 2
0
votes
0 answers

DLLs are working on machine and in another not. Same configuration

I have a DLL that I need to use in a Java application. This is already made with a Windows 32 bit service pack 3, so the DLL is working. Now I have another machine with the same configuration that needs to use it. When I'm trying to load the lib in…
John John Pichler
  • 4,427
  • 8
  • 43
  • 72
-1
votes
1 answer

Corflags.exe reports a DLL as PE32, however 32-bit regsvr32.exe won't register it

Windows 11 x64 21H2 I have a .NET 4.7.2 COM-visible DLL (not mine) in c:\program files (x86)\common\xyzshared\xyz.dll. It should be built for either 32-bit or AnyCPU. Corflags.exe reports it as PE32. However when I try to register…
Alan B
  • 4,086
  • 24
  • 33
-1
votes
1 answer

The Module "zkemkeeper.dll" was loaded but the entry-point DLLRegisterServer was not found

![DLL error][1] As per the previous observation on Stack overflow i tried the following steps A- Ran CMD Prompt as administrator and tried to register it. B- As i need to use this DLL in .net code, i have made the changes in .net Tragetframe work as…
kaza parv
  • 1
  • 2
-1
votes
1 answer

regsvr32 Custom ocx file not Registering

I've been asked to install an old VB program on an XP computer, but when I do I get an error when I run the program saying that Component 'filename.ocx' or one of its dependencies is not correctly registered: a file is missing or invalid. This is a…
Luk6e
  • 170
  • 2
  • 12
-1
votes
1 answer

Register 32 bit COM dll in 64 bit Windows Server 2008 R2

I have a 32 bit COM dll (generated using VC++) I want to use the dll in my C# / .NET project. I copied the dll to my DEV 64 bit win 7 machine and executed the following command in command prompt C:\windows\SYSWOW64\regsvr32 xyz.dll It was…
Vijay
  • 231
  • 3
  • 8
-2
votes
1 answer

RegSvr32.exe fails to launch

I'm trying to register a 64-bit, COM-based DLL into the registry through the 64-bit regsvr32.exe. However, after clicking on "Run as Administrator", regsvr32.exe shows the following message box: The message box disappears after clicking OK or…
ParthT
  • 1
  • 3
-2
votes
1 answer

Problems registering a dll in Windows Server 2003

I have a dll (build using C++ and MFC) and when I try to register regsvr32 myDll.dll the prompt shows no errors and also doesn't show that the dll has been registered but on the Task Manager the process "regsvr32.exe*32" get "stuck" (the process…
Penachia
  • 389
  • 4
  • 18
-2
votes
1 answer

Debugging Delphi com component in Visual Studio

I have a custom DLL written in Delphi, and it fails to load as a COM component. I ran regsvr32 with it, but now it fails to load with Visual Studio Interop. . I am quite amazed by this error because my colleagues got it working and it is compiled…
Erwin
  • 1,484
  • 1
  • 18
  • 32
1 2 3
16
17