mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
[Windows] OpenSSL: do not install DLLs globally to system32 (#13203)
This commit is contained in:
@@ -34,7 +34,7 @@ if ($null -eq $installerUrl) {
|
||||
|
||||
Install-Binary `
|
||||
-Url $installerUrl `
|
||||
-InstallArgs @('/silent', '/sp-', '/suppressmsgboxes', "/DIR=`"$installDir`"") `
|
||||
-InstallArgs @('/silent', '/sp-', '/suppressmsgboxes','/tasks="copytobin"', "/DIR=`"$installDir`"") `
|
||||
-ExpectedSHA512Sum $installerHash
|
||||
|
||||
# Update PATH
|
||||
|
||||
@@ -235,4 +235,9 @@ Describe "OpenSSL" {
|
||||
It "OpenSSL Full package" {
|
||||
Join-Path ${env:ProgramFiles} 'OpenSSL\include' | Should -Exist
|
||||
}
|
||||
|
||||
It "OpenSSL DLLs not in System32" {
|
||||
Get-ChildItem -Path "$env:SystemRoot\System32" -Filter "libcrypto-*.dll" -File -ErrorAction SilentlyContinue | Should -BeNullOrEmpty
|
||||
Get-ChildItem -Path "$env:SystemRoot\System32" -Filter "libssl-*.dll" -File -ErrorAction SilentlyContinue | Should -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user