Les commandes pour installer GitHub Desktop Beta 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
winget install --id GitHub.GitHubDesktop.Beta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GitHub.GitHubDesktop.Beta -e --silentwinget uninstall --id GitHub.GitHubDesktop.Beta -e --silentPar installateur
64 bits · EXE · Utilisateur actuel
GitHubDesktopSetup-x64.exe /s64 bits · MSI · Tous les utilisateurs · en-US
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestartmsiexec /i GitHubDesktopSetup-x64.msi /qn /norestart /l*v "%TEMP%\github-desktop-beta-install.log"msiexec /x {42BE184E-9DEA-4FF1-8520-CAF033E9F2A1} /qn /norestart- Code produit MSI
- {42BE184E-9DEA-4FF1-8520-CAF033E9F2A1}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42BE184E-9DEA-4FF1-8520-CAF033E9F2A1}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
- Dossier d’installation
- %ProgramFiles(x86)%\GitHub Desktop Deployment
- DisplayVersion
- 3.5.5.0
ARM64 · EXE
L’éditeur n’a documenté aucun paramètre d’installation silencieuse pour cet installateur.ARM64 · MSI · Tous les utilisateurs · en-US
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestartmsiexec /i GitHubDesktopSetup-arm64.msi /qn /norestart /l*v "%TEMP%\github-desktop-beta-install.log"msiexec /x {83989686-A7D4-4870-BFA0-F55D9358E0F9} /qn /norestart- Code produit MSI
- {83989686-A7D4-4870-BFA0-F55D9358E0F9}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{83989686-A7D4-4870-BFA0-F55D9358E0F9}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
- Dossier d’installation
- %ProgramFiles(x86)%\GitHub Desktop Deployment
- DisplayVersion
- 3.5.5.0
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
$url = 'https://github.com/desktop/desktop/releases/download/release-3.5.5-beta2/GitHubDesktopSetup-x64.exe'
$sha256 = '13B6AEF56979DDE28AC4FD88FC8F51E8DEBE5A3B2A8F4BA3F16BB6AD4557156C'
$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 '/s' -Wait $url = 'https://github.com/desktop/desktop/releases/download/release-3.5.5-beta2/GitHubDesktopSetup-x64.msi'
$sha256 = '17255206638115552E6987649729A4A5A4ABD07C91AF32478945CDCED5EACA3B'
$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 $url = 'https://github.com/desktop/desktop/releases/download/release-3.5.5-beta2/GitHubDesktopSetup-arm64.msi'
$sha256 = 'DF3C5270C0B02AEBE32817153D4BF05AD3C2C53D6D3343445D134D25D2A9995A'
$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