This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to remove icon of a shortcut from desktop
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
02:13 PM
How to remove icon of a shortcut from desktop
Hi,
IS Script MSI project with IS 2008.
I started the project by converting from DevStudio9 to IS2008. There is one issue: after upgrading using my new build on top of a previous release, every thing is fine. But when I do uninstall, a shortcut icon is left on desktop. The shortcut folder and the linked file have been removed in the uninstall. If I clicke on the icon, it will pop up error saying the linked file/folder doesn't exist or things like. When I tried install/uninstall on both of the previous release and my new build, all works fine: the shortcut (including icon at desktop) is created at install and removed at uninstall.
I know the AddFolderIcon() and DeleteFolderIcon() worked in the code, but why is the icon left on desktop? Can I force it to be removed (after uninstall)?
Thanks,
Peter
IS Script MSI project with IS 2008.
I started the project by converting from DevStudio9 to IS2008. There is one issue: after upgrading using my new build on top of a previous release, every thing is fine. But when I do uninstall, a shortcut icon is left on desktop. The shortcut folder and the linked file have been removed in the uninstall. If I clicke on the icon, it will pop up error saying the linked file/folder doesn't exist or things like. When I tried install/uninstall on both of the previous release and my new build, all works fine: the shortcut (including icon at desktop) is created at install and removed at uninstall.
I know the AddFolderIcon() and DeleteFolderIcon() worked in the code, but why is the icon left on desktop? Can I force it to be removed (after uninstall)?
Thanks,
Peter
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
03:41 PM
Is it on XP or Vista?
I found one similar case on Vista Home Basic where the shortcut appeared to be staying on the desktop after uninstall but in fact had been removed. Somehow the destop was not refreshed with the change. That's why when you clicked it it issued the "...doesn't exist..." message.
Finally, I updated that Vista with latest patches from MS and the problem was gone. Can't promise it will work on your case since it is a wierd behaviour. Maybe you just try.
I found one similar case on Vista Home Basic where the shortcut appeared to be staying on the desktop after uninstall but in fact had been removed. Somehow the destop was not refreshed with the change. That's why when you clicked it it issued the "...doesn't exist..." message.
Finally, I updated that Vista with latest patches from MS and the problem was gone. Can't promise it will work on your case since it is a wierd behaviour. Maybe you just try.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 07, 2008
05:22 PM
How was the shortcut created, with AddFolderIcon? If so, in what event are you calling RemoveFolderIcon? And which kind of upgrade?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2013
08:40 AM
In my case, the desktop shortcut was created by my basic MSI install (meaning that I added it to the Shortcuts under System Configuration). The DeleteFolderIcon did work for the desktop icon (would have gotten an error message otherwise) but I had to press F5 to refresh the screen. Any way to simulate that? Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2013
11:39 AM
Windows OS has an Icon Cache which needs to be reset. It is located at "%localappdata%\IconCache.db" You may find more info on Google.