cainrandom
Posts: 32
Joined: Wed Nov 26, 2008 11:23 pm

Registering type libraries

I have an ATL-based COM object DLL, and I have "Auto register file: Extract registration info" configured for the file. I noticed that the type library information (HKEY_CLASSES_ROOT\TypeLib) is missing from the registry, both in the Registry tab when synchronization is disabled and from the resulting MSI's Registry table (the Typelib table is likewise empty) with either synchronization setting.

However, when I manually register the library (using RegSvr32), the typelib registry entries are created.

Anybody have any idea what I'm doing wrong? I'd like to avoid using the "Self register native library" setting. Thanks!
cainrandom
Posts: 32
Joined: Wed Nov 26, 2008 11:23 pm

Re: Registering type libraries

It looks like I may have been going about this the wrong way-- I have to add the type libraries under the COM tab. However, it only lets me add .tlb files that are installed with the application, which is confusing. I'm still missing something-- I don't want to install the .tlb files.
cainrandom
Posts: 32
Joined: Wed Nov 26, 2008 11:23 pm

Re: Registering type libraries

And... you can just add the DLL's that contain the type libraries, even though "DLL" isn't one of the extensions that dialog is excited about.

This has to be one of the most circuitous things I've ever had to do with Advanced Installer... I'm a little disappointed. If a user picks a DLL to have its registration information extracted, maybe AI could detect that a type library is also contained in that file and ask the user if that should be registered as well?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registering type libraries

Hello,

Can you send us such a DLL to support at advancedinstaller dot com so we can investigate this a little further?

Thank you,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
cainrandom
Posts: 32
Joined: Wed Nov 26, 2008 11:23 pm

Re: Registering type libraries

Sent. Thanks for looking into this.

Return to “Common Problems”