Can't register type library when installing second time - Advanced Installer Community
olegf
Posts: 2
Joined: Fri Nov 01, 2013 6:27 pm

Can't register type library when installing second time

Hello,

I am having a strange problem. When installing our product we need to register 2 type libraries. So I added TLB files to the project. And added them on COM tab under "Type libraries" folder. Everything worked fine when I installed it first time. Then I uninstalled product, rebuilt installer with new binaries and tried to install it again on same computer and got following error message:
Could not register type library for file TPAPI.tlb. Contact your system administrator.
If I press "Ignore" installation finishes successfully and my application works fine (which means that TLB is registered). But why do I have this error message and how to fix it?

Thank you!
olegf
Posts: 2
Joined: Fri Nov 01, 2013 6:27 pm

Re: Can't register type library when installing second time

Here is fragment of installer log:
MSI (s) (50:58) [11:32:43:006]: Executing op: TypeLibraryRegister(,,FilePath=C:\Program Files (x86)\MyApp\MyApp.tlb,LibID={006FA006-11A4-3536-98B0-FBA3A548D760},Version=518,,Language=0,,BinaryType=0,IgnoreRegistrationFailure=0,)
RegisterTypeLibraries: LibID: {006FA006-11A4-3536-98B0-FBA3A548D760}
MSI (s) (50:58) [11:32:43:006]: QueryPathOfRegTypeLib returned -2147319779 in remote context. Path is ''
MSI (s) (50:58) [11:32:43:006]: CMsiServices::ProcessTypeLibrary runs in remote context, not impersonated.
MSI (s) (50:58) [11:32:43:016]: could not find the authored LIBID {006FA006-11A4-3536-98B0-FBA3A548D760} and/or the locale 0 in the type library C:\Program Files (x86)\MyApp\MyApp.tlb
MSI (s) (50:58) [11:32:43:016]: Note: 1: 2108 2: C:\Program Files (x86)\MyApp\MyApp.tlb 3: -2147312566
Feil 1911. Kunne ikke registrere typebibliotek for fil C:\Program Files (x86)\MyApp\MyApp.tlb. Kontakt ditt systemstottepersonale .
MSI (s) (50:58) [11:32:44:796]: Produkt: Textpilot -- Feil 1911. Kunne ikke registrere typebibliotek for fil C:\Program Files (x86)\MyApp\MyApp.tlb. Kontakt ditt systemstottepersonale .
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can't register type library when installing second time

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm not sure why this happens. Can you please try the following steps:
- create a new project containing your tlb files added in our "COM" pages
- build your project and then install it on a clean machines

and see if the behavior still replicates?

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

Return to “Common Problems”