[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

Visual Studio 2010

Does anyone know how to automatically create a desktop shortcut for my application
0
HKFuey
Asked:
HKFuey
2 Solutions
 
mrwad99Commented:
Yes, this question has been asked many times before; I recall seeing it on MSDN and have found the link which explains it for you:

http://social.msdn.microsoft.com/Forums/en-US/126c09a2-6f38-4747-9ddd-55ff977fcba0/create-a-desktop-shortcut?forum=vbide

This example creates a shortcut on a button click handler, but you can put the code anyhere you want.
0
 
Jacques Bourgeois (James Burger)Commented:
If you install your application through a .msi file, the software that you use to create the .msi should have a mechanism to do that for you.

For instance, if you use the Setup and Deployment tool that is provided with Visual Studio up to version 2010, you can add the short cut to your installation through a right click on the Primary Output in the Application Folder node of the File System window.

You then rename the created shortcut and assign it an icon through its context menu.

Once it is ready, you drag it to the User's Desktop on the left pane of the File System window.

Upon installation, the Windows Installer will use that information to create the shortcut and adjust the program location if the user install it somewhere else than in the default installation directory.

If you use another type of installer tool, check its documentation for shortcut.
0
 
HKFueyAuthor Commented:
Thanks for the help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now