GitStudioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id GitStudioHQ.GitStudio -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GitStudioHQ.GitStudio -e --silentwinget uninstall --id GitStudioHQ.GitStudio -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
GitStudio-Setup-2.0.0.exe /Sインストール先を指定
GitStudio-Setup-2.0.0.exe /S /D=C:\Apps\gitstudio- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f6388c48-c5ec-57e5-9486-b832915a90eb
- インストール先フォルダー
- %LocalAppData%\Programs\GitStudio
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-gitstudio.ps1
$url = 'https://github.com/GitStudioHQ/gitstudio/releases/download/app-v2.0.0/GitStudio-Setup-2.0.0.exe'
$sha256 = 'A4C72FD6B646C6687C08DB71F795907510052F57071AE927F1443C1754CE898F'
$file = Join-Path $env:TEMP 'GitStudio-Setup-2.0.0.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