12.7.1 problem with COM interop app - Advanced Installer Community
gkfox
Posts: 4
Joined: Thu Feb 04, 2010 12:16 am

12.7.1 problem with COM interop app

pardon me if this issue was previously reported. I see mention of a few things that may be related here but I am not connecting the dots.
This happens when using 12.7.1 but not when reverting to building the same project with 12.6.1
It is a C# DLL exposing COM interop, installer does all the registration.
On client target machines (Win 7 pro sp1), installed DLL runs fine with a .Net EXE wrapper.
Also runs fine with a VB6 EXE test wrapper invoking the DLL through COM interop using CreateObject().
But... from within their MS Access 2013 MDB app, when using the same CreateObject() call it fails with
Automation Error - the specified file could not be found.
Rebuilt the MSI using 12.6.1, reinstalled and it is fine.
Is this related to the SignTool change or anything else that changed with 12.7.1 perhaps? TY
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: 12.7.1 problem with COM interop app

Hello,

First of all we apologize for the inconvenience.

Indeed, this may be a recent issue caused by our "Register .NET assembly for COM interoperability" registration option starting with AI 12.7 version. We are aware of it and a fix will be available in a future version of Advanced Installer. We will notify you just after a fix will be out.

What happens is that our registration option fill the "CodeBase" registry values with the actual path on disk (at build time) of the COM file. As a workaround you can proceed like this:

1. in "Files and Folders" page double click on your COM file and go to "Registration" tab
2. make sure the "Synchronization" is set to disabled
3. go to "Registry" page and search for all extracted "CodeBase" registry values
4. edit their paths to use the formatted reference of your DLL file from your project:

[#myCom.dll]

5. rebuild and test again your installation

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 12.7.1 problem with COM interop app

Hello,

This was fixed in version 12.7.2 of Advanced Installer released on February 22nd, 2016.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gkfox
Posts: 4
Joined: Thu Feb 04, 2010 12:16 am

Re: 12.7.1 problem with COM interop app

Thx, Daniel - confirmed fixed in 12.7.2
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: 12.7.1 problem with COM interop app

Thank you for getting back to us!

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”