[Windows] OpenSSL: do not install DLLs globally to system32 (#13203)

This commit is contained in:
Luis Caro Campos
2025-10-23 11:00:10 +01:00
committed by GitHub
parent f5d0e07710
commit b1d8e89820
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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
}
}