visual-studio-2010web-setup-project

How to create the asp.net web setup project


I have a Asp.net application which I want to make it easy to depoly in client machine by click the .ext or .msi file.

Then I found the "web setup project" in vs.

However I have no idea how to make it.

In my case,my application need .Net 4.

And after the app is deployed I have to modify something in the web.config which I want to gather through the install wizard.

Also I need to do some clean work after deploy(modify some files).

So I wonder if my requirement is possible using "web setup project",and how to make it?


Solution

  • In Visual Studio you can modify files during install only through custom actions. So you will need to write custom code which does what you need. Regarding .NET Framework 4, it can be added as a prerequisite.

    If you want an easier solution, you can try a commercial setup authoring tool: http://en.wikipedia.org/wiki/List_of_installation_software

    For example, Advanced Installer has a dedicated project type for ASP.NET applications.