@@ -195,7 +195,7 @@ Function Get-MicrosoftVisualCPlusPlusVersion
195
195
}
196
196
Finally
197
197
{
198
- $RegEx = " (2013 : )((?:\d+\.)+(?:\d+))"
198
+ $RegEx = " (2010 : )((?:\d+\.)+(?:\d+))"
199
199
$Version = ($DownloadText | Select-String - Pattern $RegEx ).Matches.Groups[2 ].Value
200
200
}
201
201
return $Version
@@ -206,7 +206,7 @@ Function Get-MicrosoftVisualCPlusPlusVersion
206
206
# ----------------------------------------------------------[Declarations]----------------------------------------------------------
207
207
208
208
$appName = " VisualCppRedistAIO"
209
- $appName2 = " Microsoft Visual C++ 2013 "
209
+ $appName2 = " Microsoft Visual C++ 2010 "
210
210
$appVersion = Get-MicrosoftVisualCPlusPlusVersion
211
211
$appVersion = $appVersion.Substring (0 , $appVersion.Length - 4 )
212
212
$appArchitecture = " x64"
@@ -215,7 +215,7 @@ $appSetupVersion = $Evergreen.Version
215
215
$appURL = $Evergreen.URI
216
216
$appZip = Split-Path - Path $appURL - Leaf
217
217
$appSetup = " VisualCppRedist_AIO_x86_x64.exe"
218
- $appInstallParameters = " /ai58X23 "
218
+ $appInstallParameters = " /ai58X "
219
219
[boolean ]$IsAppInstalled = [boolean ](Get-InstalledApplication - Name " $appName2 " )
220
220
$appInstalledVersion = (Get-InstalledApplication - Name " $appName2 " ).DisplayVersion | Select-Object - First 1
221
221
@@ -240,15 +240,15 @@ If ([version]$appVersion -gt [version]$appInstalledVersion)
240
240
}
241
241
242
242
# 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
244
244
Execute- Process - Path .\$appSetup - Parameters $appInstallParameters
245
245
246
246
# Go back to the parent folder
247
247
Set-Location ..
248
248
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
250
250
}
251
251
Else
252
252
{
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
254
254
}
0 commit comments