How to add an icon to an existing exe file (without an icon by default)?

前端 未结 3 1277
夕颜
夕颜 2021-01-13 17:16

When I was searching on Google I found a useful class which let us change the icon of any .exe file using the following line of code :

WindowsF         


        
相关标签:
3条回答
  • 2021-01-13 17:35

    Your application's icon can be added to this executable with a tool like Resource Hacker. and visit http://georezo.net/jparis/MI_Enviro/Icons/adding_w_RH.htm

    0 讨论(0)
  • 2021-01-13 17:51

    It sounds like the protection application is verifying that the contents of the file haven't been tampered with. Injecting an icon is definitely a form of tampering, and unless the protection software is updated to ignore it, it will always fail. Alternatively if you own the protection software you could update it to not strip the icons.

    0 讨论(0)
  • 2021-01-13 17:51

    I just experienced the same issue with a 7zip Self-Extractor exe.

    Updating the icon of the 7zS.sfx (instead of the exe) before creating the Self-Extractor exe does the trick and the exe is not corrupted.

    0 讨论(0)
提交回复
热议问题