Installing / Updating an ASP.NET Website

I am looking for some ideas on how to offer an installation package for my ASP.NET website. Some of the things I need to do is read / write registry keys, get database information and check the connection, and I should be able to overwrite an existing website without deleting and updating the web configuration in new versions. I do not want to delete the website and reinstall it. I would like to see minimal downtime when updating. I think I will have to implement my own solution, and if so, how can I include all the output of my web application in my custom solution?

EDIT: I do not install this on my own system. This is for distribution to other customers who will install / update the website. It is important that I can upgrade to the latest asp.net website without uninstalling. Ideally, this would be rewriting an existing site and updating the web.config file.

+3
source share
5 answers

Option 1. Create a web application installation package

Use the Web Settings Project to create a web application installation package (.msi)

Create or add installation project on MSDN

You can create your installation as it will offer the user the Upgrate option of your application, if it is already installed on his machine. It's not a problem.

Web Setup ( ):

Optoin 2. -

NAnt MSBuild IIS Web Deployment Tool .

, NAnt MSBuild , :

  • .config , ,
  • -
  • (x-copy) ​​- IIS

-

3. - Web Plafrom.

http://www.microsoft.com/web/

+5
+1

, asp.net .msi . , ? .

0

NAnt NSIS , , .

0

Source: https://habr.com/ru/post/1705655/


All Articles