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

Commit 52f12af

Browse files
authored
C++ back to 2022
1 parent 5291391 commit 52f12af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Winget-Install-GUI.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function Get-WingetStatus{
8383
#If not installed, install
8484
if (!($path)){
8585
#Update Form
86-
Start-PopUp "Installing prerequisites:`nMicrosoft Visual C++ 2019"
86+
Start-PopUp "Installing prerequisites:`nMicrosoft Visual C++ 2022"
8787

8888
#Install
8989
try{
@@ -93,14 +93,14 @@ function Get-WingetStatus{
9393
else{
9494
$OSArch = "x86"
9595
}
96-
$SourceURL = "https://aka.ms/vs/16/release/VC_redist.$OSArch.exe"
96+
$SourceURL = "https://aka.ms/vs/17/release/VC_redist.$OSArch.exe"
9797
$Installer = "$Location\VC_redist.$OSArch.exe"
9898
Invoke-WebRequest $SourceURL -OutFile (New-Item -Path $Installer -Force)
9999
Start-Process -FilePath $Installer -Args "/passive /norestart" -Wait
100100
Remove-Item $Installer -ErrorAction Ignore
101101
}
102102
catch{
103-
Write-host "MS Visual C++ 2015-2019 installation failed." -ForegroundColor Red
103+
Write-host "MS Visual C++ 2015-2022 installation failed." -ForegroundColor Red
104104
Start-Sleep 3
105105
}
106106
}

0 commit comments

Comments
 (0)