Questions tagged [regfreecom]

Registration-free COM interop is a Microsoft technology that activates COM components without using the Windows registry to store COM registration information.

Registration-free COM interop is a Microsoft technology that activates COM components without using the Windows registry to store COM registration information. Instead of registering a COM component on a computer during deployment, you create Win32-style manifest files at design time that contain information about binding and activation. These manifest files, rather than registry keys, direct the activation of a COM object.

Using registration-free activation for your assemblies instead of registering them during deployment offers two advantages:

  • You can control which DLL version is activated when more than one version is installed on a computer.
  • End users can use XCOPY or FTP to copy your application to an appropriate directory on their computer. The application can then be run from that directory.

(from http://msdn.microsoft.com/en-us/library/fh1h056h.aspx with small changes)

108 questions
87
votes
5 answers

Generate manifest files for registration-free COM

I have some applications (some native, some .NET) which use manifest files so that they can be deployed in complete isolation, without requiring any global COM registration. For example, the dependency on the dbgrid32.ocx com server is declared as…
Wim Coenen
  • 63,995
  • 12
  • 149
  • 237
33
votes
5 answers

Use OCX without registering it

Is it possible to use an ocx (ActiveX Control) on a winform (probably adding it programatically) without first having the ocx registered with regsrv32? What I'm trying to achieve is to enable xcopy installation. I've had the "AxInterop..dll" and…
faulty
  • 7,547
  • 11
  • 41
  • 60
21
votes
3 answers

Is anyone successfully using registration-free COM with .NET components?

Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing randomly on windows XP SP3 (but not on vista) after we only changed the…
Wim Coenen
  • 63,995
  • 12
  • 149
  • 237
16
votes
8 answers

Reg Free Com with VB6 on Windows 7

I have some .NET code I use from VB6 code. I have always developed this on an XP machine by creating a VB6.exe.manifest file that listed the dependent .NET assemblies. For example, say my 2 .NET assemblies are Some.Assembly.A.dll and…
user210757
  • 5,604
  • 12
  • 54
  • 94
16
votes
5 answers

How can you force VB6 to use the DLLs and OCXs from the app directory?

I want to put my dependent files in the app directory. I seem to remember that you can force VB6 to use the files in the local directory only. Any hints?
Clay Nichols
  • 11,090
  • 25
  • 101
  • 162
16
votes
1 answer

Which tags are required in the manifest for registration free COM?

TL;DR Do all registry entries produced by regsvr32 need to be present in a SxS reg-free-COM manifest and vice versa? I'm trying to get registration free COM going for a third party component. Reading up on the subject, I find that there are several…
Martin Ba
  • 33,741
  • 27
  • 150
  • 304
11
votes
2 answers

Managed Reg-Free COM Server Won't Activate

I started with a very sophisticated system of clients and servers with COM references and other things, and I've cut down and down until I realized I can't even get Microsoft sample code to work for registration free COM activation of a managed COM…
BlueMonkMN
  • 23,447
  • 8
  • 73
  • 134
11
votes
1 answer

Run-time error -2146234341 (8013101b) Automation error from VB.NET to VB6, using manifest?

I am trying to access a VB.NET DLL (.NET FX 4.0) from a VB6 client in a reg-free scenario. I tried to follow the example from http://msdn.microsoft.com/en-us/library/ms973915.aspx, but with no success. I downloaded (link in the article) the sources…
martin
  • 125
  • 1
  • 7
10
votes
2 answers

RegFree COM working from C#, NOT working from VBA

I'm curently trying to get registration-free COM working with Excel as the client, and a .NET dll as the server. Currently I'm simply trying to get a proof-of-concept working but am having trouble. Obviously, as I am using Excel, I can't simply use…
Simon Cowen
  • 1,873
  • 16
  • 19
10
votes
1 answer

Regfree COM event fails from other thread

I have a COM visible .NET class which exposes events and is used from VB6. For the last couple of days I have been trying to get this to work with regfree COM, but without success. The VB6 event runs in regfree mode when the event is fired from the…
Herman
  • 2,021
  • 16
  • 28
9
votes
3 answers

Remote debugging in VB6

Is it possible to remotely debug a process started outside VB6? The application is a VB6 application with quite a few dll/ocx resources. I am attempting to setup a ClickOnce deployment, using Registration-Free COM, of the VB6 app but have been…
benPearce
  • 34,921
  • 14
  • 60
  • 93
9
votes
2 answers

How to do registration-free COM in a plug-in architecture

We use manifest files to do registration-free COM, as I've also elaborated on in this other question. Now we're trying to use registration-free COM with an application that supports plug-ins. The plug-ins are OCX files that can be added to the main…
Wim Coenen
  • 63,995
  • 12
  • 149
  • 237
8
votes
1 answer

How to use an out-of-process COM server without its tlb file

It is about Window COM component. Server.exe: an 32bit out-of-process COM server CLSID_Application: The GUID of a COM object in Server.exe Client.exe: a 64bit client application which use Server.exe in a registry-free way. As we know, an exe can't…
baye
  • 5,731
  • 6
  • 37
  • 68
8
votes
1 answer

Cannot get registration-free COM working from VBA

UPDATE: After spending 20+ hours trying to get a simple example working, I have realized that this is not as simple as it seems. Articles like this reveal the "gotchas" - and this was written before Windows 7 (which handles manifests differently). …
nunzabar
  • 2,334
  • 1
  • 13
  • 30
7
votes
2 answers

debugging COM free registration (c++)

I've built a COM client application that uses two COM server dlls; I want this application to run without COM registration - ie: winsxs / .manifests I get a (...almost expected...) "Class not registered" message when I try to create an instance of…
loic
  • 185
  • 1
  • 7
1
2 3 4 5 6 7 8