Cryptainer 19を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Cypherix.Cryptainer.Pro.19 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cypherix.Cryptainer.Pro.19 -e --silentwinget uninstall --id Cypherix.Cryptainer.Pro.19 -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
cryptainer19.2.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
cryptainer19.2.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cryptainer-19"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\cryptainer19_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-cryptainer-19.ps1
$url = 'https://www.cypherix.com/download/cryptv19.2.0/cryptainer19.2.0.exe'
$sha256 = '1840940E65C69085BFD4B1D2E7FA9764804239A742766023FF66F2F6212FB54B'
$file = Join-Path $env:TEMP 'cryptainer19.2.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