A
A
Andrew2015-05-07 01:16:19
.NET
Andrew, 2015-05-07 01:16:19

C# change exe icon?

Is it possible to change the icon of an existing exe file using c#? I saw programs for this on the Internet, but I would like to try to do this myself.
For example, I have a test.exe file and I want to change its icon using a third-party program.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Makarov, 2015-05-07
@Nipheris

Try www.bome.com/products/restorator or ResHacker, as far as I know, .net assemblies have resources in the same way as in native files, i.e. the explorer looks for them by the same identifiers. Open the file - replace the icon, save, see the result. Just in case, make sure that the sizes of the new and old icons match.

V
Vitaly Pukhov, 2015-05-07
@Neuroware

It is possible that I’m not sure how any exe will fit, google for “replacement of C# exe resources”, for example, there is a bitmap replacement, but there is no fundamental difference, there is an icon lying around somewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question