Fixed issue on dependency installation
parent
a2d1adf8b3
commit
bfbe57ad85
|
@ -63,7 +63,7 @@ function Check-Prerequisites{
|
||||||
$SourceURL = "https://aka.ms/vs/16/release/VC_redist.$OSArch.exe"
|
$SourceURL = "https://aka.ms/vs/16/release/VC_redist.$OSArch.exe"
|
||||||
$Installer = $WingetUpdatePath + "\VC_redist.$OSArch.exe"
|
$Installer = $WingetUpdatePath + "\VC_redist.$OSArch.exe"
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
Invoke-WebRequest $SourceURL -OutFile $Installer
|
Invoke-WebRequest $SourceURL -OutFile (New-Item -Path $Installer -Force)
|
||||||
Write-host "Installing VC_redist.$OSArch.exe..."
|
Write-host "Installing VC_redist.$OSArch.exe..."
|
||||||
Start-Process -FilePath $Installer -Args "/quiet /norestart" -Wait
|
Start-Process -FilePath $Installer -Args "/quiet /norestart" -Wait
|
||||||
Remove-Item $Installer -ErrorAction Ignore
|
Remove-Item $Installer -ErrorAction Ignore
|
||||||
|
|
Loading…
Reference in New Issue