Cryptomatorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Cryptomator.Cryptomator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Cryptomator.Cryptomator -e --silentwinget uninstall --id Cryptomator.Cryptomator -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i Cryptomator-1.19.4-x64.msi /qn /norestartログを出力
msiexec /i Cryptomator-1.19.4-x64.msi /qn /norestart /l*v "%TEMP%\cryptomator-install.log"アンインストール
msiexec /x {FC9465F4-85C2-30A8-9A9B-32FA5CCFEDB2} /qn /norestart- MSIプロダクトコード
- {FC9465F4-85C2-30A8-9A9B-32FA5CCFEDB2}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FC9465F4-85C2-30A8-9A9B-32FA5CCFEDB2}
- UpgradeCode
- {BDA45523-42B1-4CAE-9354-A45475ED4775}
- インストール先フォルダー
- %ProgramFiles%\Cryptomator
- DisplayVersion
- 1.19.4.6499
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-cryptomator.ps1
$url = 'https://github.com/cryptomator/cryptomator/releases/download/1.19.4/Cryptomator-1.19.4-x64.msi'
$sha256 = '521C8EB33A7A65EFB8CD0EB1F78D25C9B8300AA7D680DA26A5C6203BB7AF4C55'
$file = Join-Path $env:TEMP 'Cryptomator-1.19.4-x64.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