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

LoadLibrary project.dll failed. The specified module could not be found

When I try to register the 32 bit version of my C++ / ATL project with regsvr32 project.dll i'm getting this error: LoadLibrary("project.dll") failed - The specified module could not be found project.dll is my dll built using ATL on Visual Studio…
Danield
  • 121,619
  • 37
  • 226
  • 255
8
votes
1 answer

MSI Error - Failure of regsvr32 custom action

Brief I have an installation package (MSI based) which attempts to register a dll file for use as a Windows Explorer Bar (Internet Explorer Toolbar). The custom action is defined as follows: [SystemFolder]\regsvr32.exe /s "pathtodllhere" The…
Hzmy
  • 769
  • 7
  • 16
8
votes
1 answer

Registering a COM object created with VS C# 2010

I created a COM object with C# yesterday which resulted in three files in the bin/release directory of my VS 2010 project (comclass.dll, comclass.pdb and comclass.tlb). Now, when I build the solution in the project, VS registers the class for me…
deutschZuid
  • 1,028
  • 2
  • 15
  • 33
7
votes
4 answers

Regsvr32 strange behaviour = > Regsvr32 does not give any success or failure message

I have an directShow filter: MyFilter.ax When I try to register MyFilter.ax with Regsvr32 utility it gives NO error or any message(success or failure). But the filter is not registered. Regsvr32 utility works fine for my other filters. Why…
Novalis
  • 2,265
  • 6
  • 39
  • 63
7
votes
2 answers

Register DLL/OCX in InnoSetup

I have a DLL and OCX pack then I've decided to make an installer. This is what I have: ArchitecturesInstallIn64BitMode=x64 [Files] Source: {syswow64}\*; DestDir: {syswow64}; Flags: onlyifdoesntexist Source: {sys}\*; DestDir: {sys}; Flags:…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
7
votes
4 answers

Regsvr32 fails to find the dll in the current folder

When I use "regsvr32 foo.dll" i get a "The specified module cannot be found" error. The error is being caused because regsvr32 cannot find the file even though it is the current folder. I have specified the full path, and it still doen't work. Any…
cfischer
  • 24,452
  • 37
  • 131
  • 214
6
votes
1 answer

AspPDF and AspJPEG on Windows Azure

I have recently began the process of migrating our .NET Application to a Windows Azure cloud service. Our application was heavily dependent on a number of COM Class components, these include AspPDF (for PDF production and manipulation) and AspJPEG…
QFDev
  • 8,668
  • 14
  • 58
  • 85
5
votes
1 answer

msbuild fails to register output

I'm trying to get our build scripts (which use MSBuild) working correctly on Vista and am finding that projects that have the Register Output (in linker options) option set to True fail to build from the command line with something like…
Brad Robinson
  • 44,114
  • 19
  • 59
  • 88
5
votes
3 answers

regsvr32 doesn't create any entries in registry

I have a problem trying to register DLL. My OS is Windows 7 (x64). I do it in two different ways: 1) Using regsvr32. I get message "DllRegisterServer ... succeedeed", nevertheless I can't find my CLSID in registry. (And I get "Class not registered"…
skvadrik
  • 586
  • 1
  • 3
  • 11
5
votes
4 answers

Powershell to display Regsvr32 result in console instead of dialog

I've searched but did not find any answer. The task is register one dll using Powershell ps1, followed by other lines of scripts. I don't want to be interrupted by the dialog, so added the /s parameter. But now the result information is ignored, no…
Lei Yang
  • 3,970
  • 6
  • 38
  • 59
5
votes
1 answer

Windows XP: RegSvr32 /i:[cmdline]: What exactly is "Command line" in this case?

I am trying to register a dll using regsvr32 in a cmd window. I do this on an administrator account, but I need this dll to be registered for all the users. Turns out regsvr32 does not do that, it only registers for your current user. Well, when you…
Kim
  • 53
  • 3
5
votes
2 answers

Running regsvr32 as part of a WIX installer

I have authored a COM component that is distributed through a WIX-generated MSI. The COM component has rather complicated and non-static registration logic which means that embedding the registration information directly in the Windows Installer WXS…
Dai
  • 141,631
  • 28
  • 261
  • 374
5
votes
2 answers

COM registration fails with error code 0xC0000005

I'm working on a legacy project which contains several C++ COM Dlls. Every time the solution is built on debug configuration, the build process gives errors for each COM project: Error 10 error MSB3073: The command " regsvr32 /s /c…
moranlf
  • 554
  • 5
  • 19
5
votes
1 answer

Registering OCX with regsvr32.exe and having it available for all users

I have a third party web application that relies on a particular OCX file to be registered on the user's computer. I have gone into the computer as an administrator and registered the file with the command: REGSVR32 /S MyFile.ocx This works fine…
TroggleDorf
  • 410
  • 2
  • 8
  • 14
4
votes
3 answers

On Windows7, regsvr32 doesn't write to HKCR\CLSID

I have created a new simple COM object in Visual Studio 2008 using the ATL-wizard. The object has a single class and simple methods. The ATL-wizard did generate .rgs-files for my class. When I run regsvr32 Simple.dll on my XP machine the class is…
leiflundgren
  • 2,876
  • 7
  • 35
  • 53
1
2
3
16 17