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?
You just have to use
regasmon 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*.tlbfile and the necessary registry entries to make the assembly and type library COM visible in their current location.Without the
/codebasethe assembly needs to be in the GAC to be found.