Error opening old projects with 13.5 - Advanced Installer Community
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Error opening old projects with 13.5

Hello,

when we try to open project files created with Version 12.8 for example, an error occurs.
We found the error first in 13.5, then we tried to open the projects with 13.1 --> just the same.

Thank you and best regards,
Bernd

Code: Select all

File not found: "C:\Users\Hoeppner\AppData\Local\Temp\AFT8A89.reg".

Advanced Installer 13.5 build 74683
*** Stack Trace (x86) ***

[0x74f2845d]  RaiseException()
[0x01d650ae]  -----
[0x01003876]  -----
[0x00fb033e]  -----
[0x00fb01fa]  -----
[0x00fb1aa9]  -----
[0x00fb1f04]  -----
[0x00cfa298]  -----
[0x01e041f4]  -----
[0x01d9c685]  -----
[0x01df8941]  -----
[0x0162b411]  -----
[0x0118d2e1]  -----
[0x76e5367a]  RtlInitializeExceptionChain()
[0x76e5364d]  RtlInitializeExceptionChain()
[0x00910000]  MODULE_BASE_ADDRESS
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error opening old projects with 13.5

Hello Bernd,

Can you please send us the related projects (.AIP files) to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Error opening old projects with 13.5

Hello Daniel,

file is on the way to your support.

Thank you and best regards,
Bernd
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error opening old projects with 13.5

Hello Bernd,

After further investigation it seems this is a non-intuitive error message our application throws when you are using the "Register .NET assembly for COM interoperability" option for a DLL which is not a valid COM object. A fix for this misleading error will be added in a future version of our application. We will notify you when a proper error message will be included in Advanced Installer.

Let me give you some details about what happens:
1. when the above option is used Advanced Installer tries to extract the COM registration registries by calling the "DllRegisterServer" and the "DllUnregisterServer" functions; the registration registries are saved in a temporary REG file which is then imported in Advanced Installer when you open the project (if the "Synchronization" option is enabled)
2. if no REG file was created when AI tried to extract the COM registration registries the above error will be thrown (this error appeared starting with AI 13.5; prior to this version if no REG file was created by the above option we simply ignored the option)

Now to avoid this error you should open the setup project template in an AI 13.4 (or lower version), go to "Files and Folders" page and disable the "Register .NET assembly for COM interoperability" option for the DLL files which are not valid COMs. In your case, from what I saw these files are located in the "bin" directory from "Files and Foplders" page. I will send you by email the name of the related DLLs.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Error opening old projects with 13.5

Hi Daniel,

this error also occurs in 13.1.

In documentation can be found: Regasm tool is searched by AI to axtract COM info of .Net Assemblies to write it to the registry....

The assemblies you wrote me per email are valid COM enabled .Net DLLs. If you call them with the regasm tool from commandline everything is fine.
So why we should remove this option?

With AI 12.8 the error does not occur. Everything works with the same files! COM information is extracted during setup and is written to registry and comsuming vb6 apps can use objects created from classes in these dlls.

If we remove this option classes in these assemblies are no longer usable by older (VB6 apps) software using COM because registry entries cannot be found.

Best regards,
Bernd
Last edited by Kratzer on Wed Feb 08, 2017 11:20 am, edited 1 time in total.
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Error opening old projects with 13.5

Hi Daniel,

one question again, you said:

1. when the above option is used Advanced Installer tries to extract the COM registration registries by calling the "DllRegisterServer" and the "DllUnregisterServer" functions; the registration registries are saved in a temporary REG file which ...

I thought you can find these calls only in really "old" COM components (ActiveX DLL written in VB or ATL written in C++ etc.).
That's why I think DllRegisterServer cannot be called with COMinterop enabled .Net assemblies because there is no entry DllRegisterServer() in These DLLs!

Best regards,
Bernd
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error opening old projects with 13.5

Hello Bernd,
1. when the above option is used Advanced Installer tries to extract the COM registration registries by calling the "DllRegisterServer" and the "DllUnregisterServer" functions; the registration registries are saved in a temporary REG file which ...
I apologize for my misleading affirmation. I've talked with our development team an no DllRegisterServer/DllUnregisterServer function calls are made. As it is written in our documentation we use exclusively the Reagasm tool to extract the COM registration registries and, then we import the extracted registries in the setup project.

To further investigate your setup project scenario, could you send us to support at advancedinstaller dot com a download link for the related COM DLLs you are trying to register using the "Register .NET assembly for COM interoperability" option? This way we can fully test the scenario on our side and see what's going wrong.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Re: Error opening old projects with 13.5

Hi Daniel,

thank you for your reply. Before I send the files to you I tested all the dlls with 13.5.

I removed "Register..." in 12.8, opened the AIP in 13.5 and tried to add the option for all files.
And there is really one file where AI Displays a message box with an exclamation mark the the reg file ... is not found.

So WE have to investigate the problem, I think.

Thank you very much for your advice.

Best regards,
Bernd
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error opening old projects with 13.5

You're always welcome Bernd.

Just let us know when you need further assistance.

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: Error opening old projects with 13.5

Hello,

This was fixed in version 13.6 of Advanced Installer released on February 15th, 2017.

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

Return to “Common Problems”