From bfbe57ad855570e4af0a83b177f9d8de917d6232 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Thu, 10 Mar 2022 22:09:23 +0100 Subject: [PATCH] Fixed issue on dependency installation --- Winget-AutoUpdate-Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index df92a1f..177ec71 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -63,7 +63,7 @@ function Check-Prerequisites{ $SourceURL = "https://aka.ms/vs/16/release/VC_redist.$OSArch.exe" $Installer = $WingetUpdatePath + "\VC_redist.$OSArch.exe" $ProgressPreference = 'SilentlyContinue' - Invoke-WebRequest $SourceURL -OutFile $Installer + Invoke-WebRequest $SourceURL -OutFile (New-Item -Path $Installer -Force) Write-host "Installing VC_redist.$OSArch.exe..." Start-Process -FilePath $Installer -Args "/quiet /norestart" -Wait Remove-Item $Installer -ErrorAction Ignore