If you've asked a question, please remember to mark the best answer as 'accepted' by clicking the check mark next to your preferred answer. It looks like the checkmark to the left, and is right under the vote section. You'll gain some reputation and it helps us surface the best content.
1

I've got an INNO installer script that builds a setup file with desktop and start menu program shortcuts and icons specified.

The icon displayed in XP for the desktop and start menu items is as specified but under W7 I get a default script icon. I can choose the icon for the start menu item manually in W7 and it also changes the desktop icon.

I have 3 forms in the driver, hbx, setup and traffic. All forms are assigned the same icon and the icon specified in the properties is the one I want from one of the forms.

W7 displays the correct icon in the running program upper left corner just not at install time on the shortcuts.

Any clues?

Gene

flag

3 Answers

0

You can specify the icon in the [Icons] entries with IconFilename and IconIndex. See the Inno Help for details, there is a handy default.

link|flag
1

I am 'answering' my own question because I could not get 'Add Comment' to actually post a comment to Bob's answer.

I was trying to get W7 to pick up the EXE's embedded icon but it refused, kept picking icon from shell32.exe. IconIndex just picked the next one from there.

IsTool Property page for the icon showed what the expected would be, the EXE embedded icon.

I did get what I want but did require me to add a SOURCE/DRIVER directory and dropping a true ICO file in there and then pointing to it as the ICO file.

In ISTool, it did allow me to choose the one and only ICON in the EXE, showed it correctly in the PROPERTIES setup also. Now that I have added the ICO file the PROPERTIES sheet shows the file name but does not display the Icon in the index selector, go figure.

But it now does what I need.

link|flag
0

This could be a W7 issue. Perhaps it's changed the way that shortcut icons are specified. If you create a shortcut manually in W7 does it put the right icon in place?

Another suggestion is to look at the properties of the shortcuts that Inno creates, are they different to the ones that W7 creates? The Inno Setup FAQ has something about setting paths for shortcuts.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.