Les commandes pour installer GitHub Desktop sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec 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 --silentPar installateur
64 bits · EXE · Utilisateur actuel
Installation silencieuse
GitHubDesktopSetup-x64.exe --silent- Clé de registre de désinstallation
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GitHubDesktop
64 bits · MSI · Tous les utilisateurs
Installation silencieuse
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestartÉcrire un journal
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestart /l*v "%TEMP%\github-desktop-install.log"Désinstallation
msiexec /x {2F0CF00E-EDA2-49AF-9704-37657EEF1ACE} /qn /norestart- Code produit MSI
- {2F0CF00E-EDA2-49AF-9704-37657EEF1ACE}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2F0CF00E-EDA2-49AF-9704-37657EEF1ACE}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
ARM64 · EXE · Utilisateur actuel
Installation silencieuse
GitHubDesktopSetup-arm64.exe --silent- Clé de registre de désinstallation
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GitHubDesktop
ARM64 · MSI · Tous les utilisateurs
Installation silencieuse
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestartÉcrire un journal
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestart /l*v "%TEMP%\github-desktop-install.log"Désinstallation
msiexec /x {71084E7A-D86A-41A8-999C-28BE30F390F7} /qn /norestart- Code produit MSI
- {71084E7A-D86A-41A8-999C-28BE30F390F7}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{71084E7A-D86A-41A8-999C-28BE30F390F7}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-github-desktop.ps1
$url = 'https://desktop.githubusercontent.com/releases/3.6.10-ffeefe5d/GitHubDesktopSetup-x64.exe'
$sha256 = '36CAE76228A32CFABCF2BF3E17E6BB3F4E294B70692CA88A163595E6603DD835'
$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.10-ffeefe5d/GitHubDesktopSetup-x64.msi'
$sha256 = '7878E103E3C7870A7DF98CF06550EBE04ADED6BDE5997CB3564F09800122C829'
$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.10-ffeefe5d/GitHubDesktopSetup-arm64.exe'
$sha256 = '1F83A4C4623B9E7CD4634FEE4BE47684D7CE67C66B7FCA36293EAC6F74BD4EAA'
$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.10-ffeefe5d/GitHubDesktopSetup-arm64.msi'
$sha256 = '5DC2EEE67CF4CD7DF3FA52B5616A9E2CAF57A625F0298310419C8B21DED39C64'
$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