Self Registering DLL not registering - Advanced Installer Community
tscheuerman
Posts: 43
Joined: Thu Feb 11, 2016 11:39 pm

Self Registering DLL not registering

Hello,

I am using AI 12.7.1. As part of my installation project I have a dll that is configured to Self Register. When I run the installation, the DLL is not being registered. The dll is being written to a directory that is different than that of the executable that makes calls to the dll. If I manually copy the dll to the same location as the executable, the dll is found. As best as I can tell is that in Advanced Installer, when I look at the Registry entry for the dll, there is no "CodeBase" entry. For example, when I look at another Advanced Installer project that registers a dll, I see the following entries under "InprocServer32":

- Assembly
- Class
- CodeBase
- RuntimeVersion

It seems Advanced Installer uses the CodeBase entry at installation time to set the location in the Registry to where the dll is installed. I've attached a zip file that contains the following screenshots:

Screens 1 - 3 show information in a project that installs a dll and self registering the dll THAT IS WORKING!

screen1.png - dll Registration information
screen2.png - dll AI Registry information... notice the "CodeBase" entry.
screen3.png - Assembly information

Screens 4 - 7 show information in a project that installs a dll and self registering the dll that is NOT WORKING!

screen4.png - dll Registration information.
screen5.png - dll AI Registry information... notice there is no "CodeBase" entry.
screen6.png - additional AI Registry information of the dll being installed.
screen7.png - Assembly information of the dll being installed. Notice, rather than a GUID, the dll name is displayed.

What must I do to add a dll to my Advance Installer project so that when it is installed it will get registered so that the dll does not have be reside in the same location as the calling executable.

Thanks in advance,

Todd
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Self Registering DLL not registering

Hi Todd,

In order to have a better view about this, can you please attach the .zip archive once again? It seems that it was not attached to your post.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tscheuerman
Posts: 43
Joined: Thu Feb 11, 2016 11:39 pm

Re: Self Registering DLL not registering

Hello,

Here's the zip file.

Thanks,

Todd
Attachments
screens.zip
(343.91 KiB) Downloaded 392 times
tscheuerman
Posts: 43
Joined: Thu Feb 11, 2016 11:39 pm

Re: Self Registering DLL not registering

Here's some more information that might provide more details as to what I am seeing... In the Advanced Installer project where a dll is correctly being registered, on the Registry tab under HKEY_CLASSES_ROOT\CLSID are GUID entries (i.e. {00FDCDB9-5EDE-35FC-9380-7850C7F0A8F8} ). Under each GUID entry is another entry "InprocServer32". Under this entry is "6.0.0.5" entry. Under this entry I see:

Assembly
Class
CodeBase
Runtime Version

The value I see for CodeBase is "file:///[#_9EDA094A518B435E85671DA7D39B8C3E]". I'm assuming that what is between the [ ] is a Advanced Installer property that is resolved at installation time to the location the dll is installed to.

In the AI project that is registering the dll in the wrong location (the dll is being registered in the "Source" location where the dll is initially referenced in the AI project), when I look at the Registry tab, the "CodeBase" value is "file:///P:/Products/Milliman Web Format/1.30/MillimanWeb.dll" <-- this is the location of the dll when I created the AI project - NOT the location where the dll is installed! ALSO, this if a path and not a property.

I have tried recreating the AI project using the dll that is correctly being registered (the one that has a property specified for "CodeBase") but no matter what I do I cannot get AI to create a property value for the CodeBase entry (it is always a path). Regarding the AI project where the ddl's CodeBase is a property, this was created using a prior version of AI (not 12.7.1 which I am currently using). I believe the version of AI was 11.8?

Thanks,

Todd
tscheuerman
Posts: 43
Joined: Thu Feb 11, 2016 11:39 pm

Re: Self Registering DLL not registering

Hello,

I haven't heard back regarding this Post. Any ideas?

Thanks,

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

Re: Self Registering DLL not registering

Hello Todd,

First of all I want please accept our apologies for the delayed reply. We were quite busy lately.

Thank you for your feedback. Indeed, this issue could be caused by a CodeBase issue which was fixed starting with AI 12.7.2 version. For testing purposes can you download and install our latest version of AI (12.8) and re-apply the "Register .NET assembly for COM interoperability" option for the related DLL. If your maintenance plan has expired please run the Advanced Installer in trial mode and let us know if this helped.

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

Return to “Common Problems”