bottomを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Clement.bottom -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Clement.bottom -e --silentwinget uninstall --id Clement.bottom -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i bottom_x86_64_installer.msi /qn /norestartログを出力
msiexec /i bottom_x86_64_installer.msi /qn /norestart /l*v "%TEMP%\bottom-install.log"アンインストール
msiexec /x {A1BC3770-F8C3-459E-9621-001C5A1C1867} /qn /norestart- MSIプロダクトコード
- {A1BC3770-F8C3-459E-9621-001C5A1C1867}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A1BC3770-F8C3-459E-9621-001C5A1C1867}
- UpgradeCode
- {3C90C27D-8372-4C82-B03C-020393CB983D}
- インストール先フォルダー
- %ProgramFiles%\bottom
ARM64 · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i bottom_aarch64_installer.msi /qn /norestartログを出力
msiexec /i bottom_aarch64_installer.msi /qn /norestart /l*v "%TEMP%\bottom-install.log"アンインストール
msiexec /x {0E50E23A-9417-44FC-A1DD-CE68D8C43AFD} /qn /norestart- MSIプロダクトコード
- {0E50E23A-9417-44FC-A1DD-CE68D8C43AFD}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0E50E23A-9417-44FC-A1DD-CE68D8C43AFD}
- UpgradeCode
- {3C90C27D-8372-4C82-B03C-020393CB983D}
- インストール先フォルダー
- %ProgramFiles%\bottom
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-bottom.ps1
$url = 'https://github.com/ClementTsang/bottom/releases/download/0.14.9/bottom_x86_64_installer.msi'
$sha256 = '4A1C79FC0CCCA1178B6B5CBA6150A8E470828ECD75D68F0B3BDE626FA2DCFB2E'
$file = Join-Path $env:TEMP 'bottom_x86_64_installer.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 install-bottom.ps1
$url = 'https://github.com/ClementTsang/bottom/releases/download/0.14.9/bottom_aarch64_installer.msi'
$sha256 = '0C919BC21876463E27613DE19694DD439CD0B815F760C7BFC28B7FF08A528A14'
$file = Join-Path $env:TEMP 'bottom_aarch64_installer.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