Building installer fails after upgrade - Advanced Installer Community
BillD
Posts: 18
Joined: Thu Apr 24, 2014 9:10 pm

Building installer fails after upgrade

Installed the 11.2.1 update for Advanced Installer and now I get this error when attempting to build my projects:

error.
Resources referred by the project are missing.

C:\Program Files (x86)\Caphyon\Advanced Installer 11.1\themes\common-res\images\lavender\default\InstallLogo.ico
C:\Program Files (x86)\Caphyon\Advanced Installer 11.1\themes\common-res\images\lavender\default\UpgradeLogo.ico


Build finished because an error was encountered. looks like the new update is looking for themes in a folder for the previous version and it was removed by the
installation of the AI upgrade. Is there an easy fix?

Bill
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Building installer fails after upgrade

Hi Bill,

I can't replicate this, can you give me the exact steps leading to this? How did you upgrade Advanced Installer from 11.1 to 11.2.1?

The fix is to:
- go to bar menu -> File -> Options -> Path Variables
- enable "Show AI variables"
- change them as you need (the one related to the error is called AI_THEMES)

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BillD
Posts: 18
Joined: Thu Apr 24, 2014 9:10 pm

Re: Building installer fails after upgrade

Yes, all I did was accept the notification that a new version of AI was available and I installed it. Then I tried to rebuild an existing installer project I had for an application to roll out some changes and I got the error message (in red letters) from the build process.

I'll see if the fix you describe works and post back here.

Bill
BillD
Posts: 18
Joined: Thu Apr 24, 2014 9:10 pm

Re: Building installer fails after upgrade

This doesn't help. The install parameters details show that the themes location is set to 11.2.1 but the AI build step apparently is looking elsewhere (see attached screen dumps).
Attachments
AI_BuildError.png
AI_BuildError.png (39.97 KiB) Viewed 5387 times
AI_InstallParameters.png
AI_InstallParameters.png (77.38 KiB) Viewed 5387 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Building installer fails after upgrade

I see, can you please send us the project file (.AIP) to support at advancedinstaller dot com so we can investigate it?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BillD
Posts: 18
Joined: Thu Apr 24, 2014 9:10 pm

Re: Building installer fails after upgrade

It's sent.

Bill Dickinson
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Building installer fails after upgrade

Hi Bill,

The problem is that you are using logos that come with Advanced Installer and are embedded in themes, for your application's .EXE installer package (InstallLogo.ico) and for the updater (UpgradeLogo.ico).
After upgrading to the new version those resources locations are lost. A best practice is to keep all resources used by the project in single separate location on your hard drive (Icons, scripts, etc.). This way you can avoid any future confusion.

I initially thought Advanced Installer didn't convert the logo paths from 11.1 to 11.2.1.

In your case the fix is to point the following icons to existing paths:
1. Media page -> "x86_Debug" build -> Configuration tab -> EXE Icon
2. Updater page -> Display section -> File Icon

Al the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
BillD
Posts: 18
Joined: Thu Apr 24, 2014 9:10 pm

Re: Building installer fails after upgrade

Ok, thanks for the suggested fix - I'll give it a try.
This works. I'm a little confused though - the icons to which you refer were part of the files included in the installer project, so I suppose this means that icon resources should reside outside of the project file set and be referenced there from AI. This means I need to manage an icon resource for all my projects rather than having AI reference the icons from the installer project. Not sure if that;s a best practice. Whatever. At least I can get a build now.

Bill

Return to “Common Problems”