That all sounded too difficult so I decided to just standardise on one set of icons for the form and taskbar and provide different options for the desktop. Even that turned out to be trickier than I'd expected!
I'm not sure if this is totally accurate as Windows can be difficult about refreshing which icons are shown at any time. I found
ie4uinit.exe -show forces an update of the desktop icons but still don't know how to make Explorer update. Anyway, I think this is correct:
- You can add icons using the main Project Application window
- You can also add icons using the Project Resources window
- Once compiled the EXE contains the icons in the following order:
Resources icons sorted alphabetically by their resource name, then
Application icons - The form and taskbar icons will come from the Application icons
- The default desktop/shortcut/Windows Explorer icon comes from the first icon set in the EXE
So I created the following icon sets:
IconSet1: 16x16, 20x20, 24x24, 32x32, 48x48, 256x256
IconSet2: 32x32, 48x48, 256x256
IconSet3: 32x32, 48x48, 256x256
Then I set:
Project Application:
IconSet1
Project resources:
IconSet1, name: SET1
IconSet2, name: SET2
IconSet3, name: SET3
This seems to result in the expected icons appearing everywhere with the single exception being the Shortcut > Change Icons screen where the icon for Set1 appears twice (once from the Application icon set and once from the Resources), but I can live with that.