Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Desktop shortcuts to ClickOnce applications disappear after updated. Started after .Net 3.5 Framework SP1 Windows Update installed.
 

Desktop shortcuts to ClickOnce applications disappear after updated. Started after .Net 3.5 Framework SP1 Windows Update installed.

I have been using ClickOnce deployment for several applications to many PCs at our company for the last 3 years and never had an issue like this. Since the .Net 3.5 Framework SP1 Windows Update was installed on our PCs, every time I re-publish an application and the PC installs the updated application, the shortcut on the desktop that I created disappears.The application referenceis still in the Start Menu, but I want the shortcut to remain on the desktop after sending out a new version. I should mention that we are using VS 2005 so I don't have any of the options I have read about regarding the .Net 3.5 ClickOnce options in VS 2008. I'm sure it's something to do with the .Net 3.5 Framework SP1 update, but is there something I can do so the desktop shortcuts don't disappear every time I publish a new version?
tmberge  Tuesday, March 03, 2009 1:33 PM
You can programmatically create a shortcut on the desktop when using VS2005 and .Net 2.0 or .Net 3.0 Here's a link to an article explaining how, and providing code:

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  Monday, August 17, 2009 8:33 AM
How are you getting the shortcut there in the first place?

RobinS.
GoldMail.com
Ts'i mahnu uterna ot twan ot geifur hingts uto.
RobinDotNet  Wednesday, March 04, 2009 12:41 AM
I manually just create a shortcut on the desktop by copying from the link created in the Start Menu.

tmberge  Wednesday, March 04, 2009 12:38 PM

Hi Tmberge,

I'm not sure but you may have a try creating the shortcut for all users, i.e. create a shortcut to the ClickOnce application in C:\Documents and Settings\All Users\Desktop or C:\users\Public\Public Desktop.

Good luck!

Linda Liu  Thursday, March 05, 2009 8:27 AM
Did you ever figure this one out?
Rowena
Rowena2  Thursday, August 13, 2009 11:15 PM
You can programmatically create a shortcut on the desktop when using VS2005 and .Net 2.0 or .Net 3.0 Here's a link to an article explaining how, and providing code:

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  Monday, August 17, 2009 8:33 AM

You can use google to search for other answers

Custom Search

More Threads

• Changing the look of ClickOnce install progress screen
• Best Practices for detecting new versions / ClickOnce
• System.resources dll - Strange Localization Problem
• N00b Multi-part question on Setup Project (VS2005)
• deployment problem (non ClickOnce)
• PropertyGrid - Internet Explorer hosting problem
• One click publishing error 55. I dont want to use certificates at all.
• Disappearing contols while installing the application
• Checking digital signatures of MSI files
• publish.htm and web not created by PublishOnly target in Microsoft.Common.targets