[windows] Fix code style in Install-VCRedist.ps1 (#8496)

This commit is contained in:
Shamil Mubarakshin
2023-10-10 09:02:52 +02:00
committed by GitHub
parent 2ac4c5a6fd
commit cb397d0be9

View File

@@ -1,10 +1,15 @@
# Install vcredist2010 ################################################################################
$Vc2010x86Name = "vcredist_x86.exe" ## File: Install-VCRedist.ps1
$Vc2010x86URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x86Name}" ## Desc: Install Visual C++ Redistributable
$Vc2010x64Name = "vcredist_x64.exe" ################################################################################
$Vc2010x64URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x64Name}"
$ArgumentList = ("/install", "/quiet", "/norestart") $vc2010x86Name = "vcredist_x86.exe"
Install-Binary -Url $Vc2010x86URI -Name $Vc2010x86Name -ArgumentList $ArgumentList $vc2010x86URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${vc2010x86Name}"
Install-Binary -Url $Vc2010x64URI -Name $Vc2010x64Name -ArgumentList $ArgumentList $vc2010x64Name = "vcredist_x64.exe"
$vc2010x64URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x64Name}"
$argumentList = ("/install", "/quiet", "/norestart")
Install-Binary -Url $vc2010x86URI -Name $vc2010x86Name -ArgumentList $argumentList
Install-Binary -Url $vc2010x64URI -Name $vc2010x64Name -ArgumentList $argumentList
Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist" Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist"