parrotsoftware2000
Posts: 10
Joined: Tue Apr 16, 2013 6:55 pm

Including COM

I have a .net program that uses a com class. There are 3 dlls required. Two are generated in Visual Studio and both depend on stdole.dll. I have included the 3 dlls in the Application Folder and have referenced each in the COM section under System Changes. When I run the program after it is installed I get the following error:

System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))


Any help appreciated
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Including COM

Hello,

I'm not sure why this happens. Can you please enable the "Auto register file (DLL,OCX,etc)" option, from "Files Properties -> Registration" tab, for your DLL files and remove their entries from our "COM" page and see if the behavior still persist?

Also, you can take a look on "System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)" which debates a similar issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
parrotsoftware2000
Posts: 10
Joined: Tue Apr 16, 2013 6:55 pm

Re: Including COM

Thank you for your suggestion. I did use the auto register function and listed the dlls under assemblies and that seemed to do the job.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Including COM

You're welcome. I'm glad you got this working.

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

Return to “Building Installers”