Register tlb COM

1.5k Views Asked by At

I made a COM Wrapper for c# to use it in vba. I compiled it, after with gacutil and regasm I installed it on my pc, after I refered it in vba and it worked perfectly.

Now I want to use this foo.tlb in another PC, but it doesn't have gacutil or VS.

I just have to execute regasm.exe for this tlb? Or what else I need to do it?

1

There are 1 best solutions below

0
Marvin Sielenkemper On

You just have to use regasm on the assembly as Hans suggested:

Put the assembly somewhere on the target system and call regasm /tlb /codebase <assembly name>. This will create a new *.tlb file and the necessary registry entries to make the assembly and type library COM visible in their current location.

Without the /codebase the assembly needs to be in the GAC to be found.