【问题标题】:msp file through powershell cmdlet通过 powershell cmdlet 获取 msp 文件
【发布时间】:2015-07-16 13:52:58
【问题描述】:

我正在尝试使用 powershell 静默安装 Windows Fabric 补丁文件 (.msp)。

我试过这个:

$argumentCU1 = "/i "+ '"' + $execCU1 +'"' + " /quiet"
Write-Host $argumentCU1
(Start-Process -FilePath msiexec.exe -ArgumentList $argumentCU1 -wait -verb runas).WaitForExit

其中 $execCU1 是文件的路径(UNC 路径) 但它甚至没有启动。

甚至可以通过 powershell 执行 .msp 吗?这个 cmd 行正确吗?

谢谢

【问题讨论】:

  • MSP 只是一个通常伴随着 MSI 文件的转换文件。 msiexec.exe /i ".msi 文件路径" /p ".msp 文件路径"
  • 所以我必须在同一个命令中安装 msi 和他的更新?
  • 发现我的错误感谢您提供的信息
  • 我经常说。抱歉,如果我的评论具有误导性……您找到了正确的答案。

标签: powershell silent-installer start-process msp


【解决方案1】:

由于 .msp 文件是更新补丁,我需要使用“/update”而不是“/i”

因为“/i”参数用于安装 (msi) 而 /update 用于 msp 文件

就这么简单……

【讨论】:

    猜你喜欢
    • 2017-11-01
    • 2010-12-15
    • 2022-10-07
    • 1970-01-01
    • 2017-08-09
    • 2021-01-26
    • 1970-01-01
    • 2021-03-22
    • 1970-01-01
    相关资源
    最近更新 更多