Skip to content

Commit cb397d0

Browse files
[windows] Fix code style in Install-VCRedist.ps1 (#8496)
1 parent 2ac4c5a commit cb397d0

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# Install vcredist2010
2-
$Vc2010x86Name = "vcredist_x86.exe"
3-
$Vc2010x86URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x86Name}"
4-
$Vc2010x64Name = "vcredist_x64.exe"
5-
$Vc2010x64URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x64Name}"
6-
$ArgumentList = ("/install", "/quiet", "/norestart")
7-
Install-Binary -Url $Vc2010x86URI -Name $Vc2010x86Name -ArgumentList $ArgumentList
8-
Install-Binary -Url $Vc2010x64URI -Name $Vc2010x64Name -ArgumentList $ArgumentList
1+
################################################################################
2+
## File: Install-VCRedist.ps1
3+
## Desc: Install Visual C++ Redistributable
4+
################################################################################
5+
6+
$vc2010x86Name = "vcredist_x86.exe"
7+
$vc2010x86URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${vc2010x86Name}"
8+
$vc2010x64Name = "vcredist_x64.exe"
9+
$vc2010x64URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x64Name}"
10+
$argumentList = ("/install", "/quiet", "/norestart")
11+
12+
Install-Binary -Url $vc2010x86URI -Name $vc2010x86Name -ArgumentList $argumentList
13+
Install-Binary -Url $vc2010x64URI -Name $vc2010x64Name -ArgumentList $argumentList
914

1015
Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist"

0 commit comments

Comments
 (0)