Update comment

pull/757/head v2.1.0
Romain 2024-11-06 15:29:08 +01:00 committed by GitHub
parent 58cca62d04
commit 7f2d29b6b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ function Install-Prerequisites {
Write-ToLog "Checking prerequisites..." "Yellow" 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*" $Visual2022 = "Microsoft Visual C++ 2015-2022 Redistributable*"
$VisualMinVer = "14.40.0.0" $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 } $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 }