免互動安裝OpenSSL Light、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ShiningLight.OpenSSL.Light -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ShiningLight.OpenSSL.Light -e --silentwinget uninstall --id ShiningLight.OpenSSL.Light -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
Win64OpenSSL_Light-4_1_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Win64OpenSSL_Light-4_1_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\openssl-light"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSSL Light (64-bit)_is1
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i Win64OpenSSL_Light-4_1_0.msi /qn /norestart寫入記錄檔
msiexec /i Win64OpenSSL_Light-4_1_0.msi /qn /norestart /l*v "%TEMP%\openssl-light-install.log"解除安裝
msiexec /x {E893868D-BBA6-4815-900E-A50D7B3BAE79} /qn /norestart- MSI產品代碼
- {E893868D-BBA6-4815-900E-A50D7B3BAE79}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E893868D-BBA6-4815-900E-A50D7B3BAE79}
- UpgradeCode
- {8BA62D91-E3D5-4E94-AEDB-7BB3BA1B578E}
ARM64 · EXE(Inno Setup) · 所有使用者
靜默安裝
Win64ARMOpenSSL_Light-4_1_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Win64ARMOpenSSL_Light-4_1_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\openssl-light"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSSL Light for ARM (64-bit)_is1
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i Win64ARMOpenSSL_Light-4_1_0.msi /qn /norestart寫入記錄檔
msiexec /i Win64ARMOpenSSL_Light-4_1_0.msi /qn /norestart /l*v "%TEMP%\openssl-light-install.log"解除安裝
msiexec /x {727D8FD0-CA1E-41A4-BBCD-0BE55D3E05F1} /qn /norestart- MSI產品代碼
- {727D8FD0-CA1E-41A4-BBCD-0BE55D3E05F1}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{727D8FD0-CA1E-41A4-BBCD-0BE55D3E05F1}
- UpgradeCode
- {48963397-0F00-40E0-A37F-740EBBA6E4D5}
32位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
Win32OpenSSL_Light-4_1_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Win32OpenSSL_Light-4_1_0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\openssl-light"- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\OpenSSL Light (32-bit)_is1
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i Win32OpenSSL_Light-4_1_0.msi /qn /norestart寫入記錄檔
msiexec /i Win32OpenSSL_Light-4_1_0.msi /qn /norestart /l*v "%TEMP%\openssl-light-install.log"解除安裝
msiexec /x {DAACF48B-5BB2-4503-B897-690746CA2632} /qn /norestart- MSI產品代碼
- {DAACF48B-5BB2-4503-B897-690746CA2632}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{DAACF48B-5BB2-4503-B897-690746CA2632}
- UpgradeCode
- {7B69213B-526B-4E63-B03A-E5701A74CCD5}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-openssl-light.ps1
$url = 'https://slproweb.com/download/Win64OpenSSL_Light-4_1_0.exe'
$sha256 = '7D1D4022EEA9B89C5C6B691B01145F2E0F69AEAF6668635C8010A5F3F1C8C25D'
$file = Join-Path $env:TEMP 'Win64OpenSSL_Light-4_1_0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-openssl-light.ps1
$url = 'https://slproweb.com/download/Win64OpenSSL_Light-4_1_0.msi'
$sha256 = 'D829F32FDB09DDAF2ABB1DD425FD2E6893EAF53FA5F219B14EA5D6BA012387AD'
$file = Join-Path $env:TEMP 'Win64OpenSSL_Light-4_1_0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-openssl-light.ps1
$url = 'https://slproweb.com/download/Win64ARMOpenSSL_Light-4_1_0.exe'
$sha256 = 'C8C78294710F7DCED49F125D5F2D9B9892789C8DBAB44AA41B32DE9C9793B968'
$file = Join-Path $env:TEMP 'Win64ARMOpenSSL_Light-4_1_0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-openssl-light.ps1
$url = 'https://slproweb.com/download/Win64ARMOpenSSL_Light-4_1_0.msi'
$sha256 = '3718E10B3B3CECBB8B395CF32B98DEB0671093103CC0A40A062C352C82505963'
$file = Join-Path $env:TEMP 'Win64ARMOpenSSL_Light-4_1_0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-openssl-light.ps1
$url = 'https://slproweb.com/download/Win32OpenSSL_Light-4_1_0.exe'
$sha256 = 'C09A9F04955E1B711424EC5B0236B064CE53BD20CD8C9CA7DE1C9687EC8BD850'
$file = Join-Path $env:TEMP 'Win32OpenSSL_Light-4_1_0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-openssl-light.ps1
$url = 'https://slproweb.com/download/Win32OpenSSL_Light-4_1_0.msi'
$sha256 = '66B29A9ACDB2F96BCA3BBB635B97CAFEE36153DB9092CEC1211C63325AE87220'
$file = Join-Path $env:TEMP 'Win32OpenSSL_Light-4_1_0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait