Skip to content

Commit 877e8eb

Browse files
author
Jonathan Pitre
committed
Remove 2012 and 2013 runtimes support since they're covered by another script
1 parent 5e44d8c commit 877e8eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

VisualCppRedistAIO/Install-OlderVCRuntime.ps1

+6-6
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Function Get-MicrosoftVisualCPlusPlusVersion
195195
}
196196
Finally
197197
{
198-
$RegEx = "(2013: )((?:\d+\.)+(?:\d+))"
198+
$RegEx = "(2010: )((?:\d+\.)+(?:\d+))"
199199
$Version = ($DownloadText | Select-String -Pattern $RegEx).Matches.Groups[2].Value
200200
}
201201
return $Version
@@ -206,7 +206,7 @@ Function Get-MicrosoftVisualCPlusPlusVersion
206206
#----------------------------------------------------------[Declarations]----------------------------------------------------------
207207

208208
$appName = "VisualCppRedistAIO"
209-
$appName2 = "Microsoft Visual C++ 2013"
209+
$appName2 = "Microsoft Visual C++ 2010"
210210
$appVersion = Get-MicrosoftVisualCPlusPlusVersion
211211
$appVersion = $appVersion.Substring(0, $appVersion.Length - 4)
212212
$appArchitecture = "x64"
@@ -215,7 +215,7 @@ $appSetupVersion = $Evergreen.Version
215215
$appURL = $Evergreen.URI
216216
$appZip = Split-Path -Path $appURL -Leaf
217217
$appSetup = "VisualCppRedist_AIO_x86_x64.exe"
218-
$appInstallParameters = "/ai58X23"
218+
$appInstallParameters = "/ai58X"
219219
[boolean]$IsAppInstalled = [boolean](Get-InstalledApplication -Name "$appName2")
220220
$appInstalledVersion = (Get-InstalledApplication -Name "$appName2").DisplayVersion | Select-Object -First 1
221221

@@ -240,15 +240,15 @@ If ([version]$appVersion -gt [version]$appInstalledVersion)
240240
}
241241

242242
# Install latest version
243-
Write-Log -Message "Installing Microsoft Visual C++ 2005, 2008, 2010, 2012 and 2013 runtimes..." -Severity 1 -LogType CMTrace -WriteHost $True
243+
Write-Log -Message "Installing Microsoft Visual C++ 2005, 2008 and 2010 runtimes..." -Severity 1 -LogType CMTrace -WriteHost $True
244244
Execute-Process -Path .\$appSetup -Parameters $appInstallParameters
245245

246246
# Go back to the parent folder
247247
Set-Location ..
248248

249-
Write-Log -Message "Microsoft Visual C++ 2005, 2008, 2010, 2012 and 2013 runtimes were installed successfully!" -Severity 1 -LogType CMTrace -WriteHost $True
249+
Write-Log -Message "Microsoft Visual C++ 2005, 2008 and 2010 runtimes were installed successfully!" -Severity 1 -LogType CMTrace -WriteHost $True
250250
}
251251
Else
252252
{
253-
Write-Log -Message "Microsoft Visual C++ 2013 runtimes are already installed." -Severity 1 -LogType CMTrace -WriteHost $True
253+
Write-Log -Message "Microsoft Visual C++ 2010 runtimes are already installed." -Severity 1 -LogType CMTrace -WriteHost $True
254254
}

0 commit comments

Comments
 (0)