regsvr32

How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work?

Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run: c:\regsvr32 /u Amazing.dll beforehand - but hey! I forgot. To cut to the chase, when add the COM reference in VS, I can see...

InstallShield: Darwin descriptors

My InstallShield installer doesn't appear to register several of its COM DLLs correctly, even though I have refreshed the COM information for them in the installer. If I manually run regsvr32 after installation, everything is fine. I notice that after installation, I have InprocServer32 values in the registry for my components containi...

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 anything that tries to use it fails. I hunted for the various UIDs using RegEdit and they'r...

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 cleaned up after running the application? ...

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 version. Any ideas? ...

What permissions/rights are needed to run regsvr32 /s /c "myocx.ocx"

I have a WindowsXP configured as a build machine. The build process runs under an account which isn't an administrator. Some projects register as a last step an ocx control with something like regsvr32 /s /c ".\debug\myocx.ocx" This step fails and I assume that this has something to do with rights because doing the same under an ad...

msbuild fails to register output

Hi, 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 this: Project : error PRJ0050: Failed to register output. Please try enabling Per-user Redirect...

How do I fix a broken regsvr32 that crashes?

I dont know what happend but I cant register any dlls anymore. It seems like regsvr32 or some dependent dll:s have been broken (I dont think its a virus-thing, but of course you can never know). I regulary register dlls to communicate with different hardware and today I dont have the time to make a cleen install of my computer. So, do y...

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 ideas???? ...

Register a C# COM component?

I have developed a C# com component which I am using from managed c++. On my dev machine when everything works fine. However when I distribute the files, I received an error that the component has not been registered. When I try a regsvr32 on the dll it gives me an error (C# dlls cannot be registered). How do I properly register this COM...

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 appears to install, but I have to then open a command prompt (as an administrator) and ...

Regsvr32 and Desktop authority

I am registering a delphi assembly using regsvr32. We are currently using Desktop Authority to deploy our installation package for the .NET application. We are needing to use the delphi assembly in our .NET application so i have to register the assembly with regsvr32 with the installation. Although i have ran into problems if i regist...

regsrv32 dllregisterserver output

we're shipping a shell extension dll (registered with regsvr32). is there an easy way to get debug output from this dll from another application (so we can send these traces home when something is broken)? any ideas? what's the easiest way to get logdata from the dll to another process? ...

OCX not registering on *some* computers

Using VS2005, C#, and a 3rd-party OCX component in our application. Standard VS Deployment Project installation file (MSI). On 98% of the deployments, everything works just fine. On the other 2%, the OCX control isn't registered properly. At least, the fix is to unregister and re-register using REGSVR32. Problem doesn't seem to be cont...

regsvr32 uregister dll

This is driving me nuts. I registered a dll (COM) using regsvr32 blabla.dll In the meantime I deleted this dll manualy from disk. How can I unregister this dll? I know CLSID. Edit: Apparently I need to delete this from registry What should I delete in the registry? ...

[Inno Setup] Why would an ocx control not register properly?

I am writing an app that needs to use a third party ocx control. In my Inno Setup script I include the line: Source: C:\aPath\aControl.ocx; DestDir: {app}; Flags: restartreplace sharedfile regserver It looks like the control is registered, but the installed app gives me EOleSysErrors that the control isn't registered when working in Wi...

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 file "A reference to 'file.DLL' could not be added. Please make sure that the file is acc...

Visual Studio: Run C++ project Post-Build Event even if project is up-to-date

In Visual Studio (2008) is it possible to force the Post-Build Event for a C++ project to run even if the project is up-to-date? Specifically, I have a project which builds a COM in-process server DLL. The project has a post-build step which runs "regsvr32.exe $(TargetPath)". This runs fine on a "Rebuild", but runs on a "Build" only if ...

Even after running Regsvr32, I get aximp error

Hi guys, 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 that control. There is another 32-bit ActiveX control written in C++ on which A...

ActiveX does not automatically register when accessed via IE6

I made an ActiveX control, placed it in an Object tag on an html file, placed that file on an https apache server. When i access the web page using my development machine, it works fine. I unregistered the activeX from my development machine, deleted all instances of the .ocx file , but it still runs successfully on my development machin...