We have developed an ASP.NET Application and the end user need to work with the application directly by installing the application where ever he needs. Visual Studio SDK has provided Packaging and deployment concept where in a developer can create a setup project of the application.
There are so many tools available for creating setup. In this article we are going to learn about how to create a setup using Web Setup Project.
Creating Web Setup Project With VS 2010:
We have created a sample web application as below.
- Right click on the Solution and Select Add New Project.
- Select Other Project Types and Choose Setup and Deployment.
- In that Choose Visual Studio Installer.
- It shows different templates under Visual Studio Installer. Select Web Setup Project and specify a meaningful name.
Once we add a new project it creates a platform for creating setup.
Right Click on the Setup Project we added and choose Add and select Project Output. Following window will be displayed.
In the above window select Primary Output and click on Ok. Here primary output includes the solution files and the dependencies. Once the primary output is added to the project automatically based on the output it creates even the dependencies which are to be included in to this project. Say .NET Framework.
Basically there are two modes in the build configuration.
- Debug mode
- Release mode (In simple terms Non Debugger mode)
Build the Solution. Make sure like there should not be any errors.
Right Click on the setup project and choose Build. Visual Studio builds the setup project and creates an MSI for the application.
Look in the project directory location, you can able to see MSI created for your project as below.
FontAwesome Download Sample