After upgrade: uninstall icon not found during build - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Kees
Posts: 3
Joined: Tue Jul 06, 2010 8:34 pm

After upgrade: uninstall icon not found during build

After upgrading from 6.4.1 to 7.7 I got following error when building one of my projects:
] Building package (en): <deleted>
] Reusing archives from cache... done.
] Creating MSI database... error.
] Exception - Reason: Could not read icon from file [C:\Program Files\Caphyon\Advanced Installer 6.4.1\resources\uninstall.ico]. Details: The system cannot find the path specified.

Re-installing, or removing the cache did not help, but I found the following in the aip file (opened as text file):
] <COMPONENT cid="caphyon.advinst.msicomp.MsiIconsComponent">
] <ROW Name="SystemFolder_msiexec.exe" SourcePath="..\..\..\..\..\..\..\Program Files\Caphyon\Advanced Installer 6.4.1\resources\uninstall.ico" Index="0"/>

After I replaced the 6.4.1 in second line with 7.7. everything worked OK.
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: After upgrade: uninstall icon not found during build

This has been a 'problem' with Advanced Installer for a long time, and I remeber mentioning it in either a post here or in an e mail to support some while ago, suggesting that AI creates a seperate resource folder (independent of the version number folder) on install where items such as this icon, that in truth are unlikely to change version by version, can be located and referenced. The independence from a version number would by definition remove this rather annoying little error that crops up each time the A! version changes and one choses to overwrite the old version.
Cosmin did say at the time that I raised this that this improvement was on the Todo list. I hope it still is and that it will be implemented, especially as I cant see that it would be that difficult to do.

Dom
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: After upgrade: uninstall icon not found during build

Hello,

The issue you are encountering is because older versions of Advanced Installer had this issue. Simply delete the icon and readd it. Newer versions of Advanced Installer do not have this issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: After upgrade: uninstall icon not found during build

Oh Yes they do Gabriel

This is still very much an issue.

Dom

Gabriel: I did some more checking last night and indeed this is still very easy to recreate. Build a fairly simple installer in 7.6 and create a shortcut to the unistaller. It will automatically add the icon from the 7.6 resouces directory. Save and build your project.

Now upgrade to 7.7 and do not opt for a side by side install (let's face it most of us actually want to use the new features!!). Open up your old project and as nothing's changed, rebuild. Guess what, it won't find the uninstall icon. Yes all you need to do is reassign it by pointing to the 7.7 resouces folder (but you'll still have the same problem when 7.7.1 or 7.8 comes along). It would make much more sence if that particular folder was version independent.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: After upgrade: uninstall icon not found during build

Hi,

Is your project using absolute paths? If it is, try using relative paths. Please note that all Advanced Installer icons use the AI_RES path variable which is set automatically by each Advanced Installer version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kees
Posts: 3
Joined: Tue Jul 06, 2010 8:34 pm

Re: After upgrade: uninstall icon not found during build

I added the shortcuts (including the one to uninstall) to my projects with the Wizard, using the standard icon.
That resulted in a relative SourcePath, but relative to my project, not to the AI install dir.
As a user I do not know I am adding a AI-version-specific item. And I do not remember specifying absolute paths either (I made this project a while back).

Many different solutions possible (dms and cosmin mentioned some); my preference would be to always use relative paths to project dir, and only a relative path into the Advanced Installer dir (for AI-specific stuff). My 2 cts.

On a slightly related note: there are also special cases for e.g. msiexec.exe, no problem there. Except that it is maybe a bit messy that there are two different ways of specifying SystemFolder:
<ROW Shortcut="Uninstall" Directory_="SHORTCUTDIR" Name="Uninst~1|Uninstall" Component_="SHORTCUTDIR" Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]" Hotkey="0" Icon_="SystemFolder_msiexec.exe" IconIndex="0" ShowCmd="1" WkDir="SystemFolder"/>

Regards,
Kees
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: After upgrade: uninstall icon not found during build

Hi,

After further investigations we found that this behavior is caused by a bug in the shortcuts wizard. Thank you for bringing it to out attention. A bugfix will be included in a future version of Advanced Installer.
On a slightly related note: there are also special cases for e.g. msiexec.exe, no problem there. Except that it is maybe a bit messy that there are two different ways of specifying SystemFolder:
I'm not sure I understand what you mean. Can you please give me more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kees
Posts: 3
Joined: Tue Jul 06, 2010 8:34 pm

Re: After upgrade: uninstall icon not found during build

cosmin wrote:I'm not sure I understand what you mean. Can you please give me more details about this?
Hi Cosmin,

The two bold items in the quote below are two different ways of instructing the application to look in the systemfolder for msiexec.exe: either with square brackets, or with an _ separator. The word 'messy' reflects my personal taste for specifying it this way, but there may be good reasons (including historical ones) for doing it like this. Hope this clarifies my remark.
Kees wrote:On a slightly related note: there are also special cases for e.g. msiexec.exe, no problem there. Except that it is maybe a bit messy that there are two different ways of specifying SystemFolder:
<ROW Shortcut="Uninstall" Directory_="SHORTCUTDIR" Name="Uninst~1|Uninstall" Component_="SHORTCUTDIR" Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]" Hotkey="0" Icon_="SystemFolder_msiexec.exe" IconIndex="0" ShowCmd="1" WkDir="SystemFolder"/>
Kind regards,
Kees
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: After upgrade: uninstall icon not found during build

Hi,

Please note that "[SystemFolder]msiexec.exe" is the shortcut target and "SystemFolder_msiexec.exe" is the shortcut icon ID. The fact that the icon ID contains a "SystemFolder" string is just a coincidence. These IDs are generated automatically and they are unique.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”