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

regsvr32 fails for simple freepascal COM dll

I'm completely new to free-pascal and I try to implement a simple dll that should register a COM class. Unfortunately I could only find little information about COM Programming for freepascal. Thus I hope that someone here can give me some hints or…
TmTron
  • 17,012
  • 10
  • 94
  • 142
2
votes
1 answer

Framework/Framework64 and System32/Syswow64

I built my project as 64bit (not ANY CPU) but specifically 64bit. All the dll's are 64bit; most of the them are managed code (C#), and a few files are unmanaged (C++ code). I am creating a Installer in Installshield and I need to register dll's. I…
Pawan Kumar
  • 247
  • 6
  • 21
2
votes
1 answer

RegSvr32 registering yet nothing actually registered

A rather odd experience. Using the latest PDK (v7.3) from ActiveState, I used perlctrl to build a COM DLL. Perlctrl ran without a hitch. OLEView read the typelib okay. RegSvr32 registered it okay. However ... there's no sign of it in registry, and…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
2
votes
0 answers

ActiveX error 429 "ActiveX component can't create object"

I have 2 computers - a laptop and a PC. Both of them with windows 7 64-bit. I've registered a dll with an activex control using the cmd command: c:\windows\syswow64\regsvr32 mydll.dll in both of the computers, the registration has been made…
DanielY
  • 1,141
  • 30
  • 58
2
votes
1 answer

Unregistering dll without file present

As part of a build process, several dll's and tlb's are registered to COM via regsvr32. There's a step at the end of the build which unregisters that same list of dll's and tlb's. However, that step does not run if the build fails early. The…
Suchit-CM
  • 55
  • 6
2
votes
2 answers

TLB to managed .NET assembly without Regsrv32 at deploy time

I have a TLB that was provided as a part of a third-party API. I used TLBIMP.exe to generate a DLL assembly wrappper. However, at development time, it appears that the assembly requires registration with regsvr32 to be used. This isn't a problem at…
2
votes
1 answer

Does installing a file automatically register it?

I am creating an MSI installer using WiX. I have several .ocx and .dll files that must be registered on the end user's computer. Does including these files in the installation automatically register them as if the regsvr32 command had been run?
user2437443
  • 2,067
  • 4
  • 23
  • 38
2
votes
1 answer

"DLL missing" visual studio 2012?

When i am starting visual studio 2012 atl110.DLL missing problem shows. I download atl110.Dll from internet and i run command regsvr32.exe atl110.dll The module "atl110.dll" may not compatible with the version of Winbdows that you'r running. Check…
manoj
  • 5,235
  • 7
  • 24
  • 45
2
votes
1 answer

HRESULT "Class Not Registered" Implementing simple COM server DLL

I'm following this sites tutorial: http://progtutorials.tripod.com/COM.htm Preliminary evidence: Visual Studio 2010, Windows 7 64 bit. and I'm coding the examples in section 3. (Implementing a server DLL). I've typed out the code exactly as shown…
prototypik
  • 2,726
  • 1
  • 18
  • 21
2
votes
1 answer

regsvr32 file was loaded but the entry-point dllregisterserver

Possible Duplicate: How do I register a COM DLL written in C# with Regsvr32? I have written a DLL in C# (.Net 4 using VS2010). I have ticked the boxes to make it COM visible and register for COM interop. I then saved the DLL and associated files…
John Grogan
  • 31
  • 1
  • 1
  • 2
2
votes
0 answers

Not Able to Register a Third Party DLL Using regsvr32

I have been trying to register a third party dll file using the regsvr32 command, but it keeps giving me the error the dll doesn't have a entry point, dll could not be registered. Is it possible to register this dll and use it as a COM component in…
Mahadev
  • 856
  • 1
  • 17
  • 44
2
votes
1 answer

regsvr32 causes CDatabase destrucor to hang when using SQL Native Client (v2005)

I've got a C++ COM dll in Visual Studio 2005 that uses SQL Server (v2000) driver to connect to the database (SQL Server 2005). We've recently been tasked by our DB Team to upgrade our SQL Server driver from SQL Server (v2000) to SQL Native Client…
1
vote
1 answer

DLLRegisterServer failed

I was trying to re-register .ocx file that is included in my project. I got this error message: DllRegisterServer in XXXX.ocx failed. Return code 0x8007007e. I have run depends.exe and nothing seems wrong with the dependency. I only saw question…
blenzcoffee
  • 851
  • 1
  • 11
  • 35
1
vote
2 answers

Server.Create Object Failed error

I am debugging some old ASP code and have stumbled upon the following error: Server.CreateObject Failed Here's the line of code where I got the error: Set Session("SessionBoolian") = Server.CreateObject("DBUtils.SQLExpression") Where is …
Madam Zu Zu
  • 6,437
  • 19
  • 83
  • 129
1
vote
0 answers

c++ shell extension - can't register on 32-Bit

I've created a C++ Shell Context Menu Extension using this Template. On 64-Bit computers, it works great, but I can't register it on 32-Bit computers. Even the unmodified original version of the project does not work. I know that I have to set the…
Van Coding
  • 24,244
  • 24
  • 88
  • 132