Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
C++ back to 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanitho authored May 11, 2022
1 parent 5291391 commit 52f12af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Winget-Install-GUI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Get-WingetStatus{
#If not installed, install
if (!($path)){
#Update Form
Start-PopUp "Installing prerequisites:`nMicrosoft Visual C++ 2019"
Start-PopUp "Installing prerequisites:`nMicrosoft Visual C++ 2022"

#Install
try{
Expand All @@ -93,14 +93,14 @@ function Get-WingetStatus{
else{
$OSArch = "x86"
}
$SourceURL = "https://aka.ms/vs/16/release/VC_redist.$OSArch.exe"
$SourceURL = "https://aka.ms/vs/17/release/VC_redist.$OSArch.exe"
$Installer = "$Location\VC_redist.$OSArch.exe"
Invoke-WebRequest $SourceURL -OutFile (New-Item -Path $Installer -Force)
Start-Process -FilePath $Installer -Args "/passive /norestart" -Wait
Remove-Item $Installer -ErrorAction Ignore
}
catch{
Write-host "MS Visual C++ 2015-2019 installation failed." -ForegroundColor Red
Write-host "MS Visual C++ 2015-2022 installation failed." -ForegroundColor Red
Start-Sleep 3
}
}
Expand Down

0 comments on commit 52f12af

Please sign in to comment.