Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[windows] Fix code style in Install-VCRedist.ps1
  • Loading branch information
shamil-mubarakshin committed Oct 9, 2023
commit 432a52b654f73c27e36aaf9e7002933414b8fbf1
21 changes: 13 additions & 8 deletions images/win/scripts/Installers/Install-VCRedist.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Install vcredist2010
$Vc2010x86Name = "vcredist_x86.exe"
$Vc2010x86URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${Vc2010x86Name}"
$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
################################################################################
## File: Install-VCRedist.ps1
## Desc: Install Visual C++ Redistributable
################################################################################

$vc2010x86Name = "vcredist_x86.exe"
$vc2010x86URI = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/${vc2010x86Name}"
$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"