Registering .NET assemblys for COM - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

buzz71
Posts: 25
Joined: Tue Nov 02, 2010 11:03 am

Registering .NET assemblys for COM

I am distributing a number of .NET dlls that are required to be enabled for COM. I have defined them correctly and they work as expected if I copy them manually to the target machine and use regasm to register them.

What would be the suggested best practice for registering these dlls on the target machine through the install package:

1. Ship the created tlb file and include a reference to it in the COM section of Advanced installer (by adding tlb)

2. Use a "custom action" to register the assembly by using regsam on the target machine

At the moment I am getting unexpected behaviour by using method 1 and the dlls are not registering correctly.

Many thanks in advance.

Buzz71
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registering .NET assemblys for COM

Hello,

You can also try to register the files directly from the Files and Folders Page. Here is an user guide article that has the steps. This feature uses regasm to register the DLLs.

Our COM Page uses the Windows Installer method to register assemblies. If you want to use this feature you should know the purpose of the file: a file which can be registered or a file which is (or is a part of) an assembly. Please note that the purpose of a file should be known by the developer which uses it. If you have files and you don't know if they need to be registered or they need to be installed as assemblies, please contact the person or company that created the files.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”