From 7f2d29b6b724aaced73991cdb85ad0536d950635 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:29:08 +0100 Subject: [PATCH] Update comment --- Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 b/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 index 44a7489..7e378bf 100644 --- a/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1 @@ -4,7 +4,7 @@ function Install-Prerequisites { Write-ToLog "Checking prerequisites..." "Yellow" - #Check if Visual C++ 2019 or 2022 installed + #Check if Visual C++ 2022 is installed $Visual2022 = "Microsoft Visual C++ 2015-2022 Redistributable*" $VisualMinVer = "14.40.0.0" $path = Get-Item HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.GetValue("DisplayName") -like $Visual2022 -and $_.GetValue("DisplayVersion") -gt $VisualMinVer }