Dot Net Learning Zone Blog

A blog about to learn Dot Net

How to create Web Setup Project in Visual studio 2005/2008

Posted by Rajesh on February 5, 2009

Steps:

1.      Create new ASP.NET Web Site

a.      File->Add New Web Site->, Select ASP.net Web Site from template  and choose location file type or http

2.      Right click on website and then add Web Deployment project (WebSite1_deploy”)

If Web Deployment project is not display in IDE then download from http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx  for visual studio 2005 and  http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=0aa30ae8-c73b-4bdd-bb1b-fe697256c459&displaylang=en for visual studio 2008 .Install Web Deployment project and then restart your visual studio IDE. Then you can see Web Deployment project  in Build menu “Add Web Deployment Project”.

3.      Right click on WebSite1_deploy then click on Build

After successful build

4.      Add new web setup project in solution, assume project name is “WebSetup1”.Then right click on WebSetup1 and click on Add and select project output. In Project, select website1_deploy and then click on OK ..Now the final step is to build WebSetup1 .After successful build .msi file is created. Now you can install .msi file.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>