Is there a way for registration free activation of

2020-03-24 06:34发布

问题:

Is there a way to activate a COM component which is an EXE COM application and also it's dependent COM dlls? I want to activate this COM component from .NET application(VS 2005/VS 2008).

The path of call is C# application --> invoking out-of-proc exe(this is through COM) and then this out-of-proc invokes few COM dlls

回答1:

Reg-free COM does not work for out of process components.

ActiveX EXE and ActiveX Document project types cannot be used with Reg-Free COM, as discussed in the sidebar.

Simplify App Deployment with ClickOnce and Registration-Free COM



回答2:

Look at Microsoft Forum Registration-Free EXE COM Server ? So, There is no direct way to do this work whithot any additional code. As for me, the code still needs for classic registration to correct date marshaling.



回答3:

Registration free activation is described here. Roughly speaking, it looks like you create your COM components and clients as usual, then put them all into the same directory with a manifest file which contains the COM registration information.



回答4:

You can check this article. Author is loading COM IFilter objects bypassing standard CoCreateInstance. Maybe this can help you.