jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

A few days ago I upgraded to Advanced Installer 12.7 from Advanced Installer 11.8.

I rebuilt all of my AI projects by loading, building and then saving each of my .aip files.

A test user complained that the installer was no longer working properly. Upon further investigation I discovered that the .net registration was weird and the registry entries created by Advanced Installer had the path of the .dll from my development machine embedded in it.

I looked at an older .aip file (a backup from a few days ago) and compared it to the new one.

The Codebase value has gone from

file:///[#MyAssembly.dll]

to

file:///[WindowsVolume]/path/on/my/dev/machine/MyAssembly/bin/Release/MyAssembly.dll


Specifically, in the following section

<COMPONENT cid="caphyon.advinst.msicomp.MsiRegsComponent">

The codebase values have changed from

Code: Select all

<ROW Registry="CodeBase" Root="0" Key="CLSID\{0C86BEAA-6F48-44A6-A617-644CF19451A8}\InprocServer32" Name="CodeBase" Value="file:///[#MyAssembly.dll]" Component_="MyAssembly.dll"/>
to

Code: Select all

<ROW Registry="CodeBase" Root="0" Key="CLSID\{0C86BEAA-6F48-44A6-A617-644CF19451A8}\InprocServer32" Name="CodeBase" Value="file:///[WindowsVolume]/path/on/my/dev/machine/MyAssembly/bin/Release/MyAssembly.dll" Component_="ActiveData.dll"/>
I just updated to Advanced Installer 12.7.1 but the problem remains.

I have the AI .net synching turned on for registering the .net assembly.

Is this a bug in AI or have I somehow managed to change something?

Thanks.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

Hello,

I'm not sure why this happens. The best way for us to be able to investigate this will be if you could isolate the behavior in a small buildable sample (AIP + its referenced files) and send it us to support at advancedinstaller dot com so we can fully test it on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

Hello,

As an addendum, we had a similar issue in the past with DLL files which were placed in network shared location. If this is the case, can you please move your DLL files in a local path on your build machine and see if this helped?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

Everything in the build is on the C: drive of my local machine. The only thing I changed was AI. I went back to using 11.1 (on a different machine) which works fine. With 12.7.1, if I load the project and build it, the resulting assembly has the dev machine path hard coded. If I save the project then the hard coded locations get written into the aip file.

I spent most of yesterday on this and unfortunately don't have the time to try to isolate this behavior into a small .aip file.
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

Would it help if I emailed you a copy of the .aip before and after the save?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

Hello Maurizio,

There is no need to send us an old copy of the project. I've tested the scenario using your sent files and I replicated the behavior. This seems to be an issue in our latest version of AI, thank you for bringing it to our attention. A fix will be available in a future version of AI. We will notify you as soon as it will be out.

Until then, you can manually edit the value of the "CodeBase" registry to use the actual DLL file reference from the project.

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

Re: AI 12.7.1 - Codebase Values suddenly hard coded to my dev machine path

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

Return to “Common Problems”