AxCryptを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AxCrypt.AxCrypt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AxCrypt.AxCrypt -e --silentwinget uninstall --id AxCrypt.AxCrypt -e --silentインストーラー別
32ビット · EXE(NSIS)
サイレントインストール
axcrypt-2-setup.exe /Sインストール先を指定
axcrypt-2-setup.exe /S /D=C:\Apps\axcryptアンインストール
msiexec /x {9FB96B8C-6459-4DC5-CB2A-C047E1C53979} /qn /norestart- MSIプロダクトコード
- {9FB96B8C-6459-4DC5-CB2A-C047E1C53979}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9FB96B8C-6459-4DC5-CB2A-C047E1C53979}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-axcrypt.ps1
$url = 'https://account.axcrypt.net/download/axcrypt-2-setup.exe'
$sha256 = '1DED4505B8F342B4899CF316365D497C8D4E4B7E1E738952306E13D5C3ADFA02'
$file = Join-Path $env:TEMP 'axcrypt-2-setup.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 '/S' -Wait