Search code examples
visual-studio-2008iconssetup-projectsetup-deployment

Specify Icon for Windows Application using Visual Studio 2008 - Beginner's Question


I am building a Windows Application using Visual Studio 2008. For the forms (2 of them), I have specified icons.

Now, I build the Setup by adding Setup and Deployment Project to my solution. In properties of the Setup and Deployment Project, I specify the Icon.

Then I do the following

  1. I create a Shortcut to the Primary Output of my Application (the executable). Link here.
  2. I cut/paste it to the User's Desktop under the File System on Target's Machine. Link here.
  3. To the properties, I add the Icon

Now, in the Add/Remove Programs, I have the icon. In the Desktop, I have the icon. But the actual executable file still comes with the standard exe icon.

How can I have my icon for the actual executable also?


Solution

  • Open up your project's properties to the Application page.

    Under the Resources frame you can change the Icon from the default icon to an icon in your resources or you can browse for an icon on your machine.

    Project Properties - Application page