免互動安裝SecureSafe、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id DSwiss.SecureSafe -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DSwiss.SecureSafe -e --silentwinget uninstall --id DSwiss.SecureSafe -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
securesafe-2.25.0.exe /quiet /norestart解除安裝
msiexec /x {124B9F7A-A14D-4D74-9C38-B561A9AFCA82} /qn /norestart- MSI產品代碼
- {124b9f7a-a14d-4d74-9c38-b561a9afca82}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{124b9f7a-a14d-4d74-9c38-b561a9afca82}
- UpgradeCode
- {F8960FBA-683E-40E5-9B27-39F28F5AC760}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-securesafe.ps1
$url = 'https://app.securesafe.com/app/download/securesafe-2.25.0.exe'
$sha256 = 'B3831F52F1A8A291877205A97CC8104D19A847C48D4C16C6BF054C4B671C7576'
$file = Join-Path $env:TEMP 'securesafe-2.25.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 '/quiet /norestart' -Wait