Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClickOnce start menu icon

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

Platform: Visual Studio 2010 Professional Beta 1

like image 869
René Stalder Avatar asked Apr 15 '10 13:04

René Stalder


People also ask

What are ClickOnce manifests?

A ClickOnce application manifest is an XML file that describes an application that is deployed using ClickOnce.

How do I open ClickOnce app?

From the user's point of view, ClickOnce applications can be launched in two ways: From a web page on the Internet, intranet or local computer. The web page includes a link to the application deployment manifest (. application), a click on which installs and launches the application on the user's computer.

Where are ClickOnce apps installed?

Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder.


2 Answers

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.

like image 84
RobinDotNet Avatar answered Sep 17 '22 10:09

RobinDotNet


The question that led me to this thread was the following: How do I set the icon for my start menu shortcut when I deploy and install my application with ClickOnce? This is Rene's question as well.

I did try the solution where one goes to the Application tab and in the middle of the page use the option for "icon and manifest". I made sure that the icon was in the various resource files. The icon appeared on my window form, but this failed to solve the problem: The start icon remained the default icon and did not change to my application's icon.

It failed because there was another issue involved. The icon.ico file I had built for the form was 250x250 and 96px resolution. I rebuilt the application icon, which was located in the root folder, to 16x16 and 72px resolution. After doing this the Start Menu icon in Windows changed top my application's icon.

like image 40
Aaron Peters Avatar answered Sep 17 '22 10:09

Aaron Peters