【发布时间】: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