How to find out what version of webdeploy/msdeploy is currently installed?

EdmundYeung99 picture EdmundYeung99 · Feb 26, 2013 · Viewed 17.5k times · Source

I'm looking for something like a Powershell script to check if msdeploy is installed and if it is, what version

I've considered checking "c:\Program Files\IIS" and checking for MSDeploy installations there, but is this always guaranteed to be the install location?

I need this to work on any given server machine

Answer

Joachim Isaksson picture Joachim Isaksson · Feb 26, 2013

When msdeploy is installed (no matter where in the file system), it will add its install path to the registry at;

HKLM\Software\Microsoft\IIS Extensions\MSDeploy\<version>\InstallPath

and its version information to;

HKLM\Software\Microsoft\IIS Extensions\MSDeploy\<version>\Version

...where <version> is currently 1, 2 or 3 depending on the WebDeploy version you have installed.