views:

151

answers:

2

I have to be stupid. Searched for hours in the internet to find a solution. I couldn't find one.

How do I set the icon for my start menu shortcut, when I deploy and install my application with ClickOnce?

+2  A: 

This looks like a solution:

http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/3a385b87-54ae-4432-9b48-e7077bde255d

SLC
That worked. Crazy.
René
+1  A: 

Double-click on the properties for your main project.

Click on the Application tab. (I'm assuming C# here. If you're doing VB, post back if it's different and I'll see if it's the same.)

In the middle of the page, there is an option for "icon and manifest".
Browse to find the icon you want to use and select it.
It needs to be in the top folder of your project; I think it will put it there when you select it.
The icon will be deployed with your project, and will be used in the Start Menu. (You can doublecheck the Application Files dialog -- it should be in there marked include(auto)).

You can set the icon on the forms to point to the same icon, and show it on all your forms too.

RobinDotNet
Didn't work that way. Already tried. Maybe it's a bug in Visual Studio 2010 beta
René
That's very odd. I deployed my application and haven't had any problems with it. Is the ico file included in the deployment? Is it in Application Files, marked Include?
RobinDotNet
RobinDotNet's advice about the icon, specifically that "It needs to be in the top folder of your project" is crucial. I just got done wasting a few hours hunting down an issue where my icon was being placed in Application Files folder under Images\myicon.deploy which was causing an error when downloading this resource.
jpierson