How to change an executable icon from C # code? (not my app icon)

How can I change the * .EXEs icons from C # code (and not my main application icon, but from this application I want to change the icon of another exe).

In the end, I would have to change the icons for a large number of files, so I'm looking for a quick and effective way to do this.

I have been searching for 30 minutes, but all I found was to set the application icon in VS.

+5
source share
3 answers

You need to call the resource APIs as described here .

In particular, you need to call BeginUpdateResource, UpdateResourceand EndUpdateResource.

+3

, .exe( ), exe, . . , , ShellLink.

0

All Articles