Archive: icons replacement problem


icons replacement problem
Hi
I have a problem with the icons in the case when i create a new version of the setup with new icons and run it on a machine where there was an older installation with old icons:

The icons in the start menu, on the desctop and in the quicklaunch bar are all the ones from the previous installation. Fortunately I found a solution for this problem (maybe I read it somewhere in this forum a year ago..) - i simply change the name of the install and the uninstall icons every time i make a new setup with a new icon. This works for me for a year but yesterday I created a new setup and saw that the problem is still present especially with the uninstall icon. The new uninstall icon which the new setup has to place in the start menu isn't there - instead there is the old uninstall icon from the previous installation. This occurs on all windows versions except XP where everything is OK. And the solution with changing icon name in every new setup I create doesn't work.

Any idea will be appreciated!


It seems that the icon is cached. Maybe the system has to reboot, or deleting the file ShellIconCache (in windir ?) could help, so that the system is forced to build a new one. But I remember some post, where there was a smarter solution...


This should update the icons:

http://nsis.sourceforge.net/archive/...php?pageid=202


Hello again!
I tried RefreshShellIcons but it doesn't work... Is it important when exactly I will call it? I tried calling it in Section1 immediately after installing the shortcuts or in FinishSection after creating teh uninstaller.exe


Hello all! I think I've found a solution (at least it works on two machines till now..).
In the script I was first creating the uninstall shortcut and then creating the uninstall.exe. Of course in this case I think it is normal Windows not to be able to find the right icon because the exe is still not there and maybe it gets the icon from the cache. So when I moved the uninstall shortcut creation after the creation of the uninstall.exe everything is OK. I'm happy:))!