use WebClient
This commit is contained in:
Родитель
c358c7db5c
Коммит
48d75485ac
|
@ -83,7 +83,7 @@ try {
|
|||
New-Item -Path $MsiFolder -ItemType Directory | Out-Null
|
||||
}
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
||||
DownloadFileLow -sourceUrl $msiUrl -destinationFile $msiPath
|
||||
(New-Object System.Net.WebClient).DownloadFile($MsiUrl, $MsiPath)
|
||||
}
|
||||
Write-Host "Installing $Name"
|
||||
start-process $MsiPath -ArgumentList "/quiet /qn /passive" -Wait
|
||||
|
|
Загрузка…
Ссылка в новой задаче