blob: d4724ffe120ebea965715b6e9fd90b507075c9e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$OpenSSLVersion = "1_1_1k"
$OpenSSLExe = "OpenSSL-$OpenSSLVersion.exe"
if (!(Test-Path("C:\OpenSSL-Win32"))) {
instDir = "C:\OpenSSL-Win32"
$exeFull = "Win32$OpenSSLExe"
$exePath = "$($env:USERPROFILE)\$exeFull"
Write-Host "Downloading and installing OpenSSL v1.1 32-bit ..." -ForegroundColor Cyan
(New-Object Net.WebClient).DownloadFile('https://slproweb.com/download/$exeFull', $exePath)
Write-Host "Installing to $instDir..."
cmd /c start /wait $exePath /silent /verysilent /sp- /suppressmsgboxes /DIR=$instDir
Write-Host "Installed" -ForegroundColor Green
} else {
echo "OpenSSL-Win32 already exists: not downloading"
}
if (!(Test-Path("C:\OpenSSL-Win64"))) {
instDir = "C:\OpenSSL-Win64"
$exeFull = "Win64$OpenSSLExe"
$exePath = "$($env:USERPROFILE)\$exeFull"
Write-Host "Downloading and installing OpenSSL v1.1 64-bit ..." -ForegroundColor Cyan
(New-Object Net.WebClient).DownloadFile('https://slproweb.com/download/$exeFull', $exePath)
Write-Host "Installing to $instDir..."
cmd /c start /wait $exePath /silent /verysilent /sp- /suppressmsgboxes /DIR=$instDir
Write-Host "Installed" -ForegroundColor Green
} else {
echo "OpenSSL-Win64 already exists: not downloading"
}
|