SecureSafeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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