Mumble Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Mumble.Mumble.Server -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Mumble.Mumble.Server -e --silentwinget uninstall --id Mumble.Mumble.Server -e --silentインストーラー別
64ビット · EXE(WiX Burn) · すべてのユーザー · en-US
サイレントインストール
mumble_server-1.5.915.x64.exe /quiet /norestartアンインストール
msiexec /x {5B53121F-AAB6-41A1-A886-25332F583C0E} /qn /norestart- MSIプロダクトコード
- {5B53121F-AAB6-41A1-A886-25332F583C0E}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5B53121F-AAB6-41A1-A886-25332F583C0E}
- UpgradeCode
- {03E9476F-0F75-4661-BFC9-A9DAEB23D3A0}
- インストール先フォルダー
- %ProgramFiles%\Mumble\server
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-mumble-server.ps1
$url = 'https://github.com/mumble-voip/mumble/releases/download/v1.5.915/mumble_server-1.5.915.x64.exe'
$sha256 = '6F249951A67BC54AB9292364B84EB1BC8C8A2F2F4A9E10E63034C86FC7E73119'
$file = Join-Path $env:TEMP 'mumble_server-1.5.915.x64.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 '/quiet /norestart' -Wait