![]() |
Change Icon of EXE file through code extracting it from other EXE file
2 Attachment(s)
I was a FAN of Resource hacker software and always wanted to create a software like them but one day I just thought lets make a mini version of resource hacker and so wrote a program to change the ICON of an exe or dll file. The idea came to me when I saw programs that can show you the ICONS in an executable files and so I thought if we can see them then definitely we can edit them as well. If we can edit them then there is a way to give them a different ICON to be displayed in the explorer.
Here is the code for the same Code: CPP
Code: CPP
Code: CPP
Code: CPP
Code: CPP
Code: CPP
Code: CPP
|
Re: Change Icon of EXE file through code extracting it from other EXE file
Hey, I saw your example on how to change the app icon from extracting it from another executable. Do you have any idea how to change the app icon from an icon.ico file?
|
Re: Change Icon of EXE file through code extracting it from other EXE file
What do you mean by icon.ico file. Do you mean loading a different icon than the default provided or you want to edit the default icon of the application.
|
Re: Change Icon of EXE file through code extracting it from other EXE file
change the default icon in an executable with a .ico file
|
Re: Change Icon of EXE file through code extracting it from other EXE file
Instead of taking the icon resource out of one executable and putting it in the other, I am trying to find a way to make an application that opens a .ico file and replace the icon resource information in the executable with the .ico file. The program resourcehacker from the link below accomplishes this very well
http://www.angusj.com/resourcehacker/ |
Re: Change Icon of EXE file through code extracting it from other EXE file
This can be done probably by reading the ico file using the
Code: CPP
Code: CPP
|
Re: Change Icon of EXE file through code extracting it from other EXE file
works fine, and is good work
but if you change the icon view on windows to large icon, stays the same only works with small icon :D |
Re: Change Icon of EXE file through code extracting it from other EXE file
Thats because it changes only one ICON and normally exe have single icon and if you have more than one in the destination exe you have to replace all sizes icon to the new one.
|
Re: Change Icon of EXE file through code extracting it from other EXE file
Yep. that's correct. thanks for the code again.
|
Re: Change Icon of EXE file through code extracting it from other EXE file
how to change the default icon with an icon file i want to know !!
|
| All times are GMT +5.5. The time now is 05:37. |