I want to register a .TLB file which I created by compiling an IDL file using the MIDL compiler. I cannot find the "regtlib12.exe" tool anywhere. I tried to register it by using "regasm" but it takes an assembly file as an argument, creates a tlb file and then registers it. It cannot register an existing tlb file.
So I created an assembly using "tlbimp.exe" from the tlb file and then tried to use "regasm" but it gave me the error:
CLR assembly '<path_to_dll>' was imported from a type library and cannot be re-exported to a type library. Make sure the type library from which the assembly was imported is registered.
So how can I register a tlb file without "regtlib12"? Is there a way to do this programmatically by using a msi installer or some other way?
Thanks
Manoj