Gitnadoを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id hegsie.Gitnado -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id hegsie.Gitnado -e --silentwinget uninstall --id hegsie.Gitnado -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー · en-US
サイレントインストール
Gitnado_0.9.1_x64-setup.exe /Sインストール先を指定
Gitnado_0.9.1_x64-setup.exe /S /D=C:\Apps\gitnado- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Gitnado
- インストール先フォルダー
- %LocalAppData%\Gitnado
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i Gitnado_0.9.1_x64_en-US.msi /qn /norestartログを出力
msiexec /i Gitnado_0.9.1_x64_en-US.msi /qn /norestart /l*v "%TEMP%\gitnado-install.log"アンインストール
msiexec /x {6117787E-D2B2-4488-96D0-88463BBA10E7} /qn /norestart- MSIプロダクトコード
- {6117787E-D2B2-4488-96D0-88463BBA10E7}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6117787E-D2B2-4488-96D0-88463BBA10E7}
- UpgradeCode
- {84C95AFF-09D5-5959-BE4D-927B1CC7FC1B}
- インストール先フォルダー
- %ProgramFiles%\Gitnado
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-gitnado.ps1
$url = 'https://github.com/hegsie/gitnado/releases/download/v0.9.1/Gitnado_0.9.1_x64-setup.exe'
$sha256 = '386FE0A6279BB83B62328B07256D212FD6AA4F04C743DB49F55DF9383D0C9C79'
$file = Join-Path $env:TEMP 'Gitnado_0.9.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-gitnado.ps1
$url = 'https://github.com/hegsie/gitnado/releases/download/v0.9.1/Gitnado_0.9.1_x64_en-US.msi'
$sha256 = 'F55072BA95639235E3D63CB75E4614115C3D159C2E5E5C389D12AA81AF8D9C6D'
$file = Join-Path $env:TEMP 'Gitnado_0.9.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