GitHub Desktopを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id GitHub.GitHubDesktop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GitHub.GitHubDesktop -e --silentwinget uninstall --id GitHub.GitHubDesktop -e --silentインストーラー別
64ビット · EXE · 現在のユーザー
サイレントインストール
GitHubDesktopSetup-x64.exe --silent- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GitHubDesktop
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestartログを出力
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestart /l*v "%TEMP%\github-desktop-install.log"アンインストール
msiexec /x {DA7017AA-1461-48F5-9B6D-B4D895B154BB} /qn /norestart- MSIプロダクトコード
- {DA7017AA-1461-48F5-9B6D-B4D895B154BB}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DA7017AA-1461-48F5-9B6D-B4D895B154BB}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
ARM64 · EXE · 現在のユーザー
サイレントインストール
GitHubDesktopSetup-arm64.exe --silent- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GitHubDesktop
ARM64 · MSI · すべてのユーザー
サイレントインストール
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestartログを出力
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestart /l*v "%TEMP%\github-desktop-install.log"アンインストール
msiexec /x {23C90CF4-57F6-4986-816E-2323C1475525} /qn /norestart- MSIプロダクトコード
- {23C90CF4-57F6-4986-816E-2323C1475525}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{23C90CF4-57F6-4986-816E-2323C1475525}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-github-desktop.ps1
$url = 'https://desktop.githubusercontent.com/releases/3.6.9-e0ba6bb8/GitHubDesktopSetup-x64.exe'
$sha256 = 'F0017AF2EFB38D22ECFDC519ED387449F112C5CAB486C41214C173230DE953C1'
$file = Join-Path $env:TEMP 'GitHubDesktopSetup-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 '--silent' -Wait install-github-desktop.ps1
$url = 'https://desktop.githubusercontent.com/releases/3.6.9-e0ba6bb8/GitHubDesktopSetup-x64.msi'
$sha256 = 'E2BAB1785C348D0C29CB79C1030B07B902322E63FFD4025EF9BFD175DB600555'
$file = Join-Path $env:TEMP 'GitHubDesktopSetup-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 install-github-desktop.ps1
$url = 'https://desktop.githubusercontent.com/releases/3.6.9-e0ba6bb8/GitHubDesktopSetup-arm64.exe'
$sha256 = '7489F3D91184A02E8A607DB3A7F34B187516D6DA1729360950AAEE92FC60204C'
$file = Join-Path $env:TEMP 'GitHubDesktopSetup-arm64.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 '--silent' -Wait install-github-desktop.ps1
$url = 'https://desktop.githubusercontent.com/releases/3.6.9-e0ba6bb8/GitHubDesktopSetup-arm64.msi'
$sha256 = 'A43454544F991EB244B1E0F384B9316DA7965F78908B29388FCCC26805FFC433'
$file = Join-Path $env:TEMP 'GitHubDesktopSetup-arm64.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