Reputation: 9044
I am using visual studio 2010 and I have a .net desktop app (winform). I want to create a setup for project. I have added a setup wizard project to the solution. Now I want to add a shortcut to Programs menu and desktop. With right click on "User's Program menu" and selecting Add, I have only these options: Folder, File, Project output and Assembly. How can I add shortcuts? Another question: Is it possible to add .net 4.0 to setup project and install it if necessary? Thank you in advance.
Upvotes: 9
Views: 29865
Reputation: 955
if you're looking to add shortcut to your desktop while installing your windows app you should follow these steps
Upvotes: 18
Reputation: 508
In order to include .net framework as part of the installation package, select your installer project from solution explorer, right click -> properties.
In the opened window, press "prerequisites" button. Another window opens and select your desired .Net Framework version and then from the radio buttons choose "Download prerequisites from the same location as my application".
Upvotes: 0
Reputation: 56539
Here is a good visual This explains the entire setup and deployment in vs2010.
A short note from my answer:
(1) File -> New Project -> Other Project Types -> Setup and Deployment -> Visual Studio Installer
(2) Add a name to your setup project.
(3) Right click Application Folder -> Add -> project output
(4) ****Select your respective project's solution "primary output from yours.."****
(5) ****Add the respective 3rd party dlls.**** // Never forget this one.
(6) Right click setup project in solution explorer and BUILD it.
(7) Find the respective setup in debug folder(by default)
You will get the .exe
and .msi
in the folder.
Upvotes: 0
Reputation: 3919
here the explanation to add a shortcut in your project: http://support.microsoft.com/kb/837220
Upvotes: 0