3

I have an application whose executable contains some default icon. Now, I know I can use a shortcut with whatever icon I want, but what I'm looking to do is change the icon within the executable itself. How can I do this?

Notes:

  • Using Windows 7 64bit, but I'm interested in 32-bit executables as well, which will perhaps run on Win XP etc.
  • Keeping the same filesize is a plus, but not necessary.
  • This question is about a specific kind of executable, packed by UPX so its answer is not general enough - it's just one possibility.
einpoklum
  • 10,666

3 Answers3

6

Sounds like a job for Resource Hacker

It allows to change the resources within exe files - including images.

Alternatively, since Resource Hacker is no longer being developed, there is another tool with similar capabilities - Resource Editor.

Edit: This one as well: reseditor

Edit2: There's more. Resedit

mnmnc
  • 4,257
2

One recent option (v2.0.0 released 2023-11-15) for editing the embedded icon of an EXE is the Electron project's rcedit command line tool.

From the project documentation:

rcedit "path-to-exe-or-dll" --set-icon "path-to-ico"
ctrueden
  • 123
-3

Try this :

Right click on your .exe 
Property

enter image description here

mpgn
  • 155