Visual Studio 2003 Setup and Deployment Project
Posted on 2006-06-21
Question about what I thought would be a simply process, namely to create a setup project for a small application I wrote in C#/.NET 1.1. So I've created a setup and deployment project and added the "Primary output..." to the Application Folder as well as all the dependencies and merge modules needed by the application. All that is fine and the application installs and works.
So the problem is that I'd like to have a shortcut to the main exe file from the desktop as well as the Start Menu. I followed the instructions as best I can, since the instructions to exactly match reality... The MSDN docs say:
To add a shortcut to a file or folder
In the File System Editor, select the file or folder to which you want to create a shortcut.
Note When adding a shortcut to a special folder, you must set the AlwaysCreate property of the folder to true.
On the Action menu, click Create Shortcut to <Name>. The shortcut appears in the File List.
Select the shortcut, and choose Cut from the Edit menu.
In the Folder List, select the folder where you want the shortcut to appear on the target computer, and choose Paste from the Edit menu.
Tip You can also drag shortcuts from one place to another.
Ok so first of all there is no "Create Shortcut to <Name>." option in the menu. There is only one that says:
"Create Shortcut to Primary output from Name of my project (.NET Release)"
So if I do that it does create what says it is a shortcut and I can copy that to the Desktop and Programs Menu. When I run the setup shortcuts DO get created but they don't run the application, they run the INSTALLER again and then run the application.
Can someone tell me what I'm doing wrong or how to create a shortcut properly?