【问题标题】:uninstall .net core sdk 1.x on remote machines在远程机器上卸载 .net core sdk 1.x
【发布时间】:2021-07-01 09:21:06
【问题描述】:

需要在远程机器上卸载 .net sdk 旧版本。pop up window 在 PowerShell 脚本下方尝试卸载旧 .net sdk 版本时出现。所以 .net core sdk 不会在没有用户输入的情况下在远程 Windows 机器上卸载。

If
(Test-Path "C:\Program Files\dotnet\sdk\1.1.14")
{
Start-Process -FilePath $env:systemroot\system32\msiexec.exe -ArgumentList "/X{BCB0834B-EC91-4237-AF17-A2F67FC93796}"
}

尝试添加 /quite

Start-Process -FilePath $env:systemroot\system32\msiexec.exe -ArgumentList "/X{BCB0834B-EC91-4237-AF17-A2F67FC93796} /quiet" but not working 
[with quite option][2]as well

【问题讨论】:

  • 你说没有,但你真的想使用它? Msiexec.exe /X{BCB0834B-EC91-4237-AF17-A2F67FC93796} /quiet
  • 我关心的是在远程机器上通过脚本自动卸载.net sdk,无需用户输入。
  • 试试/quiet /qn。 (qn --> 没有用户界面)

标签: .net windows powershell .net-core azure-search-.net-sdk


【解决方案1】:

$arguments = "/quiet"

Start-Process -FilePath $env:systemroot\system32\msiexec.exe -ArgumentList "/X{BCB0834B-EC91-4237-AF17-A2F67FC93796}

【讨论】:

  • 面临同样的问题。添加 $arguments = "/quiet" 后显示弹出窗口
猜你喜欢
  • 1970-01-01
  • 2011-03-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-09
  • 1970-01-01
  • 2017-12-29
相关资源
最近更新 更多