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
- :
- Desktop shortcut Icon Issues.
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
Jul 07, 2010
07:18 AM
Desktop shortcut Icon Issues.
When Installshield makes a desktop shortcut it does it for reasons best known to itself BEFORE it copies the exe file to the target. A work round to make the shortcut have the product's icon is to define the shorcut as using the icon from the source directory which is fine when files are stored in CD folders. Now we have started to produce UPGRADE versions of our software which are more compact and use cabinet files so when upgrading the Icon for the product shortcut gets removed. At the moment the best I can come up with is setting the Icon to not be replaced.
we do use :
AddFolderIcon ( FOLDER_DESKTOP, szResult,"\"" ^ TARGETDIR ^ "\\cdrive.exe" ^ "\"", TARGETDIR, TARGETDIR ^ "\\cdrive.exe", 0, "", REPLACE);
To try and set the correct path etc for the desktop shortcut and select the I*CON file in our OnFirstUIAfter routine but as far as I can tell it does not normally actually do anything.
we do use :
AddFolderIcon ( FOLDER_DESKTOP, szResult,"\"" ^ TARGETDIR ^ "\\cdrive.exe" ^ "\"", TARGETDIR, TARGETDIR ^ "\\cdrive.exe", 0, "", REPLACE);
To try and set the correct path etc for the desktop shortcut and select the I*CON file in our OnFirstUIAfter routine but as far as I can tell it does not normally actually do anything.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 07, 2010
07:26 AM
Changing the command to ReplaceFolderIcon does seem to make the scripted replace Desktop Shortcut work, I would still like to be able to make Installshield create the shortcut with the correct ICON specified as being in the correct place though.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)