471,337 Members | 1,109 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Add shortcut on desktop for Published application

How do I set the publish wizard to add a shortcut to the client's desktop?
Feb 14 '06 #1
1 7054
Hi,
How do I set the publish wizard to add a shortcut to
the client's desktop?


I am afraid the ClickOnce installation only supports the creation of the
Start menu's shortcut, but not the desktop's shortcut icon.

If you need to create a desktop icon for your Clickonce application, one
workaround is to provide your application with the necessary file code
access permissions. With that you can write custom code in the startup of
your application (ClickOnce apps startup after install by default), then
you can create the desktop icon at that time. Please refer to the following
link for a code sample:

Creating Shell Links (Shortcuts) in .NET Programs Using WSH
http://www.codeproject.com/dotnet/shelllink.asp

By the way, if you take this approach, the desktop's shortcut won't be
removed when your application has been uninstalled.
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Feb 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by I_AM_DON_AND_YOU? | last post: by
5 posts views Thread by DraguVaso | last post: by
2 posts views Thread by Mark | last post: by
3 posts views Thread by thi | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.