This step-by-step article describes how to add a shortcut
(.lnk) file to a Setup project in Microsoft Visual Studio 2005 or in Microsoft Visual Studio .NET. To do this, you
have to add the shortcut file to your Microsoft Windows Application project and then set the
Build Action property to Content. Then, in your Setup project, add the content files from your
Windows Application project to the User's Desktop
folder.
Add a shortcut
file to your Windows Application project
To add a shortcut file to your Windows Application project, follow these steps:
In the project folder of the Windows
Application project that you created in the "Create a Windows Application project" section, create a shortcut.
For additional information about how to create a shortcut, click the following article number to view the article in the Microsoft Knowledge Base:
140443
(http://support.microsoft.com/kb/140443/
)
How to create a shortcut on the desktop
In Solution Explorer, click MyWindowsApp,
and then click Refresh.
On the Project menu, click Show
All Files.
In Solution Explorer, right-click the shortcut file that
you created in step 1, and then click Include In
Project.
In Solution Explorer, right-click the shortcut file, and
then click Properties.
Set the Build Action property to
Content.
On the Build menu, click Build
MyWindowsApp to build the Windows Application project.