Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Web Deploy for Hosting Servers on Windows Server 2016

The Web Platform Installer fails to install Web Deploy for Hosting Servers on Windows Server 2016.

like image 276
franzo Avatar asked Jun 09 '17 05:06

franzo


People also ask

How do I know if web Deploy is installed?

Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.


2 Answers

To fix this, first install the missing components using Server Manager, Manage, Add Role and Features. I think these are the ones required: Logging Tools, Request Monitor, .Net Extensibility, ASP.Net, ISAPI Extensions, ISAPI Filters, Management Service. I ended up with the following for my needs.

IIS roles and features

Next install Web Deploy 3.6 for Hosting Servers using the Web Platform Installer. (If it fails, note which components it depended on, install as above and try again.)

At this stage if you look for Deploy again in the Platform Installer it won't be installed, even though it says it was successful.

Go to Control Panel, Add or Remove Programs, find Web Deploy and choose Modify, Next, then Change.

Set IIS Deployment Handler to Entire feature will be installed, Next etc.

Web Deploy 3.6 Setup

The Deploy menu will now appear in IIS Manager (restart it first if you already had it open) and Web Platform Installer will see that it's installed.

like image 104
franzo Avatar answered Oct 16 '22 07:10

franzo


I tried to follow franzos answer and even though it worked in the end and resolved my issue, there was one detail missing:

At this stage if you look for Deploy again in the Platform Installer it won't be installed, even though it says it was successful.

Go to Control Panel, Add or Remove Programs, find Web Deploy and choose Modify, Next, then Change.

Set IIS Deployment Handler to Entire feature will be installed, Next etc.

On my windows server core there is no "Control Panel" or other access to "Add or Remove Programs"

What resolved it for me was downloading the .msi package for WebDeploy to the server and running it from cmd.

msiexec /L msdeployinstall.log /I <path_to_msi>

This runs the installation wizard and you can change the installation with: Set IIS Deployment Handler to Entire feature will be installed, Next etc. as described by franzo.

Best regards and thanks for the advice.

like image 1
Stefan Bruhn Avatar answered Oct 16 '22 09:10

Stefan Bruhn