How can I change *.EXEs icons from c# code (not my main app icon but from that app i want to change the icon of another exe).
I eventually would have to change the icons for A LOT of files so I am looking for a fast and good performance way to do it.
I have been googling for 30min but all I found is how to set the icon for the app in VS.
Right-click the original EXE file (not the copy you made) and choose “Open using Resource Hacker.” In the Resource Hacker window, select the “Icon” folder in the left pane. Click the “Action” menu and then select “Replace Icon.”
You need to call the Resources API methods, as described here.
Specifically, you need to call BeginUpdateResource
, UpdateResource
, and EndUpdateResource
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With