How to deploy COM

I just finished creating my new COM project (C #, .NET 3.5). This project will be called by the VFP application. It works fine on my development machine, but now I need to know how to deploy it on the user's machine. The β€œOnce” click is not available for such a project, so I think I'm stuck in manually distributing the DLL.

So where should I put the DLL and how to register it?

BTW, the 3.5 framework is already installed on the user machine.

TIA

+1
source share
2 answers

I have never used RegSvr32 with .Net assemblies, instead I use regasm with the / codebase option:

    C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ regasm.exe / codebase mydll.dll

/tlb .

, - vstudio, .

+3

COM

.Net , . .Net, .

- TLBEXP.EXE, .Net. , . .

tlbexp ComServer.dll /out:ComServer.tlb

Assembly exported to C:\Magellan\Source\Output\Debug\ComServer.tlb

, COM- , , COM COM, COM- .

COM-

COM- , COM , , COM. :

regasm ComServer.dll

DLL , C:\Program Files\MyApplication.

http://www.csharphelp.com/archives/archive190.html

+1

All Articles