如何找出当前安装了哪个版本的webdeploy/msdeploy? [英] How to find out what version of webdeploy/msdeploy is currently installed?
问题描述
我正在寻找类似Powershell脚本的内容,以检查是否已安装msdeploy,以及是否安装了什么版本
I'm looking for something like a Powershell script to check if msdeploy is installed and if it is, what version
我已经考虑过检查"c:\ Program Files \ IIS"并在那里检查MSDeploy安装,但是是否始终保证此位置是安装位置?
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
推荐答案
安装msdeploy
时(无论在文件系统中的哪个位置),它将在以下位置将其安装路径添加到注册表中:
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
及其版本信息;
HKLM\Software\Microsoft\IIS Extensions\MSDeploy\<version>\Version
...,其中<version>
当前为1、2或3,具体取决于您安装的WebDeploy版本.
...where <version>
is currently 1, 2 or 3 depending on the WebDeploy version you have installed.
这篇关于如何找出当前安装了哪个版本的webdeploy/msdeploy?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!