Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > desktop shortcut for clickonce application
 

desktop shortcut for clickonce application

Hello everyone,

I have some questions about clickonce app.

-- How can I create a desktop shortcut when using clickonce deployment?

-- The shortcut in the start->programs is company name. Is there any way to change it? If not, I really wonder what's the point for this limitation.

-- Clickonce is supposed to replace the UAB. So far I feel UAB has more flexibilities. Can someone tell me the major advantages of clickonce?

Thanks a lot for your help.
lxiao  Wednesday, November 16, 2005 6:24 PM
No it is not possible to create a desktop shortcut using ClickOnce.

You can change the name of the folder in the programs menu and of the shortcut itself by changing the name of the publisher and the name of the product respectively. You can do that by doing the following:

1. In Solution Explorer, right-click on your Project and click properties
2. In the Properties window, select the Publish tab
3. Click Options

In the dialog that opens you can then change the name of the publisher and of product.

If you want more information regard the difference between ClickOnce and Windows Installer technologies have a look at the following article:

Choosing Between ClickOnce and Windows Installer
David M. Kean  Thursday, November 17, 2005 10:08 AM

There's a funky class you can use here: -

http://blogs.vbcity.com/hotdog/archive/2005/12/08/5733.aspx

I'm using it to make sure my application adds a shortcut to the Startup folder, it should be a simple tweak to add it to the Desktop.

Hth,

Plip.

Phil Winstanley ASP.NET MVP  Tuesday, December 20, 2005 9:57 AM
No it is not possible to create a desktop shortcut using ClickOnce.

You can change the name of the folder in the programs menu and of the shortcut itself by changing the name of the publisher and the name of the product respectively. You can do that by doing the following:

1. In Solution Explorer, right-click on your Project and click properties
2. In the Properties window, select the Publish tab
3. Click Options

In the dialog that opens you can then change the name of the publisher and of product.

If you want more information regard the difference between ClickOnce and Windows Installer technologies have a look at the following article:

Choosing Between ClickOnce and Windows Installer
David M. Kean  Thursday, November 17, 2005 10:08 AM
You can control the name of the shortcut in the start menu based on the delpoyment manifest. If you examine the "shortcut" that points to your clickonce app, it is nothign more than a special text file which contains the url to your clickonce deployment server. I have been able to create a desktop shortcut manually by using a regular shortcut with the following target

%windir%\explorer.exe "http://host/AppSite/App.application"

Now this may be possible if your application had been granted persmission by the user, to manually create a desktop shortcut in code that does this. I haven't tried it yet but plan to...
james_cline_  Thursday, November 17, 2005 5:23 PM

Hi guys,

Thanks for your great help. Now I can create shortcut in start menu without any problem. However, I still feel surprised because clickonce doesn't support desktop shortcuts. Anyway, I will send a feedback to MS.

lxiao  Thursday, November 17, 2005 6:16 PM

There's a funky class you can use here: -

http://blogs.vbcity.com/hotdog/archive/2005/12/08/5733.aspx

I'm using it to make sure my application adds a shortcut to the Startup folder, it should be a simple tweak to add it to the Desktop.

Hth,

Plip.

Phil Winstanley ASP.NET MVP  Tuesday, December 20, 2005 9:57 AM

Hi All,

I have a windows application built from C# that uses the windows scripting host to create a shortcut on the startup folder. My Problem occurs when my application starts up using the shortcut (.Ink) file it does not check for updates from the path I've set, but if I use the "Application Reference" created on the start menu - programs folder it will check for updates. Does anyone encounter the same problem with clickOnce deployed applications being run by a shortcut(.Ink) file? Or am I just missing something. Thanks!

rguez_18  Tuesday, October 09, 2007 7:00 AM

don't work Sad

Oleg V. Shastitko  Sunday, December 30, 2007 4:30 PM
I know this is way late in the game but using .Net 3.5 in VS 2008 you can create desktop icons with ClickOnce
Adrient  Monday, February 23, 2009 8:51 PM
Adrient, could you please give more details, or instructions on how to create the desktop icon in VS2008?
pcfountain  Tuesday, June 30, 2009 2:33 PM
Go to project in VS2008 solutionexplorer right-click the clickonce deployed project choose Properties->Publish click options button, click manifests in list box, choose [] Create desktop shortcut.
programmer
cdjudge  Monday, August 03, 2009 8:27 PM

Here's specific information about how to create a desktop shortcut for your ClickOnce application, regardless of the .Net version you are targeting.

http://robindotnet.wordpress.com/2009/04/07/creating-a-desktop-shortcut-for-a-click-once-application/

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, August 04, 2009 4:23 AM

cdjudge,

That does work, but onlyif you are targeting the .Net 3.5 Framework.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, August 04, 2009 4:24 AM

You can use google to search for other answers

Custom Search

More Threads

• Change the language in the install.msi-file
• editing the *.exe.config.deploy file
• ClickOnce Deployment Basic questions.
• ClickOnce exprired certificate fixed...not.
• Custom table and custom action.
• Windows Installer - setup fails for installation from web
• Run time access to Publish Version
• Registry value problem with deployment setup project
• Control hosted in Web page works in IIS5 but not IIS6
• Failed to load resources from resource file. Please check your setup.