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!

sgturner
Posts: 13
Joined: Wed Feb 20, 2013 9:53 pm

How to register a .NET assembly as a .COm object

Hi,

How do I perform the following with AI:

Generate a type library to be refrenced by your code %"windir%\Microsoft.NET\Framework64\v2.0.50727\regasm.exe" /tlb "{fullpath}\QlmLicenseLib.dll"
Register the QlmLicenseLib.dll as a COM object, ie %"windir%\Microsoft.NET\Framework64\v2.0.50727\regasm.exe" /codebase {fullpath}\QlmLicenseLib.dll

thanks
Steve
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to register a .NET assembly as a .COm object

Hello Steve,

In order to achieve this you can use our "Register .NET assembly for COM interoperability" registration option. Just add your file in "File and Folders" page, select it, from its context menu choose "Properties..." option, go to "Registration" tab and enable the "Register .NET assembly for COM interoperability" option.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sgturner
Posts: 13
Joined: Wed Feb 20, 2013 9:53 pm

Re: How to register a .NET assembly as a .COm object

Thanks!. That worked.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to register a .NET assembly as a .COm object

You're welcome Steve.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”