×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Icon shown on exe file in File Explorer

Icon shown on exe file in File Explorer

Icon shown on exe file in File Explorer

(OP)
Hi,
I've changed the version of my app and I have the version # incorporated in the icon which shows against the executable in File Explorer. But I can't remember how to specify the icon so that I can use the new one with the new version #.
I've looked in the IDE but can't locate the icon name there.
I'm using Inno installer but obviously it's nothing to do with that

Any help - thanks

GenDev

RE: Icon shown on exe file in File Explorer

Project information -> Attach Icon/ Icon button to pick the icon, then build the EXE.

Chriss

RE: Icon shown on exe file in File Explorer

(OP)
Thanks Chhriss again

RE: Icon shown on exe file in File Explorer

(OP)
Sadly, that didn't work.. I rebuilt the project before remaking the exe as well.



GenDev

RE: Icon shown on exe file in File Explorer

I don't know what you mean, I see the icon on the EXE.

Chriss

RE: Icon shown on exe file in File Explorer

(OP)
Hi Chriss,

If I look closely using magnify in the browser the number on the icon is 10 not 11.

GenDev

RE: Icon shown on exe file in File Explorer

F5?

Or did the build even succesd? And do you look at the EXE you just compiled or in another place?

Chriss

RE: Icon shown on exe file in File Explorer

(OP)
The exe is indeed the one created directly after the 'build' but I'm not sure how to tell if the build succeeded though?
I've just done another rebuilt with a recompile. I see the recompile activity and the same when I rebuild the exe. But same result.
The old icon file isn't in the folder anymore.
Problem not solved!
Despite the correct icon image being shown in the IDE dialogue - there was an older icon file in the folder without a version in the title but it did have V10 on it. I deleted this file and I thought all is well however my eyes deceived me .

I've been through the whole process again - built a new icon file with 11 in it. Rebuilt - new exe - dang! still the 10 file shows.
I shall leave it for a while and try again later..

Thanks for your comments..


GenDev



RE: Icon shown on exe file in File Explorer

GenDev,

Are you aware that an ICO file can contain multiple icons, and multiple copies of the same icon at different sizes? In order for an EXE's icon to appear within Windows, you need as a minimum a 16x16 and a 32x32 version of your icon.

Your favourite icon editor will tell you which icons the file contains.

Also, you might need to tell the icon editor which icon you want to have priority.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Icon shown on exe file in File Explorer

(OP)
AS a test I used my icon editor VariIcons to create a new icon (a very simple one) to the same spec as it indicated for my old icon 32x32.32bpp. This was the only size shown.
I added the new test.ico to my project via project info and it showed there, rebuilt the project and created a new exe.

And the old icon still showed.
So
1 although the cursor takes say, 10 secs , to return after a rebuild and the pjt file shows the current time ,and
2 the exe shows the new time
The icon hasn't changed,



So I wonder if the icon file name is stored somewhere else?

GenDev

RE: Icon shown on exe file in File Explorer

(OP)
Further to above.

I've just renamed and rebooted my PC ( to stop some specific actions in my code) and the icon has changed to the test.
The icon is a single line. More investigations follow.

GenDev

RE: Icon shown on exe file in File Explorer

(OP)
That fixed it

Whew!


GenDev

RE: Icon shown on exe file in File Explorer

Just to clarify my previous post:

The 16 x 16 icon is the one that appears in the Start menu and in folder windows (at least, in Small Icons view). The 32 x 32 version shows up in desktop shortcuts and possibly in Medium Icon and Large Icon view in folder windows. Does that help at all?

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Icon shown on exe file in File Explorer

(OP)
Thanks Mike

RE: Icon shown on exe file in File Explorer

Windopws stores icons for files in a "database" file it has as hidden system file in each folder. But pressing F5 should refresh that.

Yoiu could also always create a shortcut for your EXE, look into the shortcut properties, click chnange Icon (for the shortcut, not the exe) and get listed all icons in the EXE. You there can even pick another exe as the source of other icons, so that change icon dialog is a hack to have a resource viewer for icons in DLLs are EXEs, in first place the EXE the shortcut is based on.

Chriss

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close