Gitmunを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id cst8t.gitmun -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id cst8t.gitmun -e --silentwinget uninstall --id cst8t.gitmun -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Gitmun_0.13.0_x64-setup.exe /Sインストール先を指定
Gitmun_0.13.0_x64-setup.exe /S /D=C:\Apps\gitmun- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gitmun
- インストール先フォルダー
- %LocalAppData%\Gitmun
- DisplayVersion
- 0.13.0
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Gitmun_0.13.0_x64.msi /qn /norestartログを出力
msiexec /i Gitmun_0.13.0_x64.msi /qn /norestart /l*v "%TEMP%\gitmun-install.log"アンインストール
msiexec /x {0656FB63-AACB-439B-BC83-C8F03C8E59E3} /qn /norestart- MSIプロダクトコード
- {0656FB63-AACB-439B-BC83-C8F03C8E59E3}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0656FB63-AACB-439B-BC83-C8F03C8E59E3}
- UpgradeCode
- {CFD38D6F-06D8-500B-8162-2815A511EBAF}
- インストール先フォルダー
- %ProgramFiles%/Gitmun
- DisplayVersion
- 0.13.0
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-gitmun.ps1
$url = 'https://github.com/cst8t/gitmun/releases/download/v0.13.0/Gitmun_0.13.0_x64-setup.exe'
$sha256 = '65A379303CC1262FF4E4FE921C74B0E58A8964C51F13EA004590201E6B779253'
$file = Join-Path $env:TEMP 'Gitmun_0.13.0_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-gitmun.ps1
$url = 'https://github.com/cst8t/gitmun/releases/download/v0.13.0/Gitmun_0.13.0_x64.msi'
$sha256 = 'C2434F4766DD7EF58E8EAFC16F38EF2276E936F882CE06FE4C057D4496F6829E'
$file = Join-Path $env:TEMP 'Gitmun_0.13.0_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