.exe icon

07/07/2015 13:25 const*#1
Hello,

I wanted to simply change the icon of an exe file ("test.exe"), using Resource Editor and Resource Hacker.

I managed it to do that, but unfortunately, the files were useless afterwoods. Using Resource Hacker it sprays some weird missing DLL (z.dll, or ".DLL") errors, using Resource Editor it simply doesn't work, just notifies me, that this is not a valid WIN32 appl.

I am looking for a way to do it, does anyone have an idea?

Kind Regards
07/07/2015 14:05 warfley#2
Well there is a way, you could open the file as a binary file, search for the location of the former icon, and replace the following bytes (that are used by the former icon) with the bytes of the new icon. The problem is you have a size cap, your icon can have a max of bytes of the former icon. If the new Icon ist smaller fill the rest of the bytes with 0x00.

But i guess ressource hacker ist the better solution, maybe you icon has a compression that causes problems
07/15/2015 03:33 Waller66#3
ur file is unnormal packed or broken ?

ressource hacker click -> replace icon
all win icons readout and save per ressource hacker : %SystemRoot%\system32\SHELL32.dll