How to set the exe file icon

brainleak

Well-known member
Joined
Dec 20, 2016
Messages
54
Location
Barcelona area
Programming Experience
3-5
When I deploy a project, the exe file shows a generic icon rather than the one I thought I'd chosen.

I'm using VS 2015 and this is what I have done:

1. Go to Project => Properies => Resources => Add Resource => Add existing file => Browse folders and select a specific icon
2. In the project explorer select the icon => Properties => Build action: Embedded resource

What else am I missing?
 
Now if I go to the Control Pannel to uninstall the program it turns out it appears in the list of installed applications with the generic icon. How do I fix this?
 
Depends on how you deploy, for Setup projects there is a AddRemoveProgramsIcon property, for ClickOnce you have to add a registry value manually (DisplayIcon path for apps Uninstall registry).
 
Back
Top