TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Adding a Setup Project in Visual Studio-2010
Hemant Srivastava
Aug 05, 2012
73.6
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this article I am going to explain how to Add a Setup Project in Visual Studio-2010.
Add a setup project in your project solution by
Right Click on Solution -> Add -> New project
Add New Project window opens. Select Setup Project by
Other Project Types -> Setup and Deployment -> Visual Studio Installer
Give some name to your setup project and click OK
Setup Project gets added into your project solution.
Right click on your setup project
Go to Add option and then Project Output
Select Primary Output of in the list box and select your application in the top combo box. Now click OK.
Again right click on your setup project and Go to View option and then Custom Actions
Now Custom Actions window gets opened. Right click the Custom Actions and then Add Custom Action…
A window opens, now you have to double click Application Folder option. Doing this, you get to see Primary output from “Your Project”. Select that option and click OK
You would see that primary output of your project gets added in Install, Commit, Rollback and Uninstall option.
Make sure that your setup project is got added into your project solution.
Right click the project solution and open the property, go to the Configuration and select the Build option
Build the whole project.
Now you can install your application by right click the Setup project and choose Install option.
Your app gets installed successfully! You can reach its exe in the default path in your setup. (Generally default path is like…C:\Program Files\YourCompanyName\).
Adding a Setup Project in Visual Studio-2010
Next Recommended Reading
Create A New ASP.NET MVC Project In Visual Studio 2015