0

有没有办法检测 WebPICmd.exe(WebPlatformInstaller 的命令行版本)的存在状态,以便我可以在我的脚本中使用它。

我需要知道特定产品的安装是否成功。(尝试安装PHP53,由于下载失败貌似随机失败)

4

1 回答 1

0

This can be detected using $LASTEXITCODE variable in PowerShell.

In dos mode it should be LASTERRORLEVEL.

Remember to check this variable immediately after running the WebPICmd.exe so that it's return code is not overwritten by something else down the line.

于 2012-09-04T09:15:19.467 回答