mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
[Windows] Fix WebPlatformInstaller installation (#1379)
* fix webPlatformInstaller installation * Install-WebPI -> Install-WebPlatformInstaller * add tests for webPlatformInstaller * fix webPlatformInstaller test
This commit is contained in:
committed by
GitHub
parent
e3cb3e32d4
commit
504b88bcb0
@@ -124,7 +124,8 @@
|
||||
],
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-PowerShellModules.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Initialize-VM.ps1"
|
||||
"{{ template_dir }}/scripts/Installers/Initialize-VM.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-WebPlatformInstaller.ps1"
|
||||
],
|
||||
"execution_policy": "unrestricted"
|
||||
},
|
||||
|
||||
@@ -124,7 +124,8 @@
|
||||
],
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-PowerShellModules.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Initialize-VM.ps1"
|
||||
"{{ template_dir }}/scripts/Installers/Initialize-VM.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-WebPlatformInstaller.ps1"
|
||||
],
|
||||
"execution_policy": "unrestricted"
|
||||
},
|
||||
|
||||
@@ -114,9 +114,6 @@ choco feature enable -n allowGlobalConfirmation
|
||||
# Remove some of the command aliases, like `cpack` #89
|
||||
Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force
|
||||
|
||||
# Install webpi
|
||||
Choco-Install -PackageName webpicmd
|
||||
|
||||
if (Test-IsWin16) {
|
||||
# Install vcredist140
|
||||
Choco-Install -PackageName vcredist140
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
################################################################################
|
||||
## File: Install-WebPI.ps1
|
||||
## Desc: Install WebPlatformInstaller
|
||||
################################################################################
|
||||
|
||||
# Download and install WebPlatformInstaller
|
||||
$webPlatformInstallerFile = "WebPlatformInstaller_x64_en-US.msi"
|
||||
$webPlatformInstallerUrl = "http://go.microsoft.com/fwlink/?LinkId=287166"
|
||||
Install-Binary -Url $webPlatformInstallerUrl -Name $webPlatformInstallerFile -ArgumentList ("/silent", "/install")
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "WebPlatformInstaller"
|
||||
@@ -243,6 +243,12 @@ Describe "VSWhere" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "WebPlatformInstaller" {
|
||||
It "WebPlatformInstaller" {
|
||||
"WebPICMD" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Zstd" {
|
||||
It "zstd" {
|
||||
"zstd -V" | Should -ReturnZeroExitCode
|
||||
|
||||
Reference in New Issue
Block a user