Annotatorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Snijderlab.Annotator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Snijderlab.Annotator -e --silentwinget uninstall --id Snijderlab.Annotator -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Annotator_1.2.1_x64-setup.exe /Sインストール先を指定
Annotator_1.2.1_x64-setup.exe /S /D=C:\Apps\annotator- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Annotator
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Annotator_1.2.1_x64_en-US.msi /qn /norestartログを出力
msiexec /i Annotator_1.2.1_x64_en-US.msi /qn /norestart /l*v "%TEMP%\annotator-install.log"アンインストール
msiexec /x {CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE} /qn /norestart- MSIプロダクトコード
- {CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE}
- UpgradeCode
- {7EEB6BC5-23EA-51E1-B28D-FC9633D3F90D}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-annotator.ps1
$url = 'https://github.com/snijderlab/annotator/releases/download/v1.2.1/Annotator_1.2.1_x64-setup.exe'
$sha256 = '8E33ECE379158DB40133992A0BF176B67F1C802EDBA409DD28FCE687D2C88452'
$file = Join-Path $env:TEMP 'Annotator_1.2.1_x64-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 install-annotator.ps1
$url = 'https://github.com/snijderlab/annotator/releases/download/v1.2.1/Annotator_1.2.1_x64_en-US.msi'
$sha256 = '0DC50728D0D487B5AAD1B3F73498C2FD9579BDD311DA453385ABE4DEFD5677F6'
$file = Join-Path $env:TEMP 'Annotator_1.2.1_x64_en-US.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