Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Missing Icon Image on Shortcut

I have a project that was working fine originally but we recently added a custom action that installs a MSI we need for our program. The installation works fine except the icons for the shortcut files isnt there. When I go to the properties of the shorcut and click on change icon it tells me that windows cannot find the path to the icon which is %SystemRoot%\Installer\[ProductKey]\[ShortcutFile]. When I go to the %SystemRoot%\Installer\ path i can see which path should be the one the icon is pointing to. What I think is happening is that when it installs the second MSI it gets confused and thinks that my product key is that of the second MSI that get installed causing the path to be off. Is there something that I'm doing wrong or is this a bug?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Missing Icon Image on Shortcut

Hi,

What type o custom action you are using to run the second MSI file? Please note that nested installation type of custom action ("MSI Database..." in AI) were deprecated by Microsoft and using them may lead to unexpected behavior:
http://msdn.microsoft.com/en-us/library ... S.85).aspx

If your application needs other application to be installed prior to run the use prerequisites:
http://www.advancedinstaller.com/user-g ... tware.html

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Missing Icon Image on Shortcut

We tried this but the problem we have with it is that it creates a separate exe file and and ini file as well. We wanted to keep this install limited to one MSI file so it could be pushed using GPO. Is there a way to use the way you suggested but keeping everything in one MSI File?

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

Re: Missing Icon Image on Shortcut

Hi,

You can try using a chained installation. Please note that the User Guide contains the Create a chained installation how-to which may help you. In this case, the target machines should have Windows Installer 4.5 installed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Missing Icon Image on Shortcut

Thanks for the info. I guess we will have to try and make 4.5 a PreReq for instalation...
einar
Posts: 8
Joined: Fri Aug 14, 2009 5:03 pm

Re: Missing Icon Image on Shortcut

Trax wrote:Thanks for the info. I guess we will have to try and make 4.5 a PreReq for instalation...
How did that work out for you? Did it solve the problem?

I cant see Windows Installer 4.5 in the list of Prerequisites packages I can choose from (I have version 6.2 of Adv. Installer). Is it included in newer versions?
MindTooth
Posts: 37
Joined: Mon Aug 17, 2009 12:40 am

Re: Missing Icon Image on Shortcut

Windows Installer 4.5 prerequisites was added in v6.5.

Birger :)
einar
Posts: 8
Joined: Fri Aug 14, 2009 5:03 pm

Re: Missing Icon Image on Shortcut

It doesn't seem to help in my case.

I have a virtual machine with an old installation of our program.
I installed Windows Installer 4.5 from here: http://www.microsoft.com/downloads/deta ... layLang=en
I rebooted
I ran the setup package I just created with Adv. Installer 6.2
After the installation both the main exe file and the icon were gone, all of the other files got installed/updated.

I did this on Vista 32 bit (No SP installed)

Now, the strange thing is, that the setup package I created like a year ago with the same version of advanced installer, does not behave like this. The only changes I've made to the setup project (other than adding files) is to add a com registration to one file, file association and to isntall a single to another location than my program folder (a patch for another component).

What might have changed in my installer project that causes this behaviour?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Missing Icon Image on Shortcut

Hi,

I answered to your original post, please take a look:
http://www.advancedinstaller.com/forums ... 088#p25088

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

Return to “Common Problems”