Ordres per instal·lar GitHub Desktop Beta sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
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 --silentPer instal·lador
64 bits · EXE · Usuari actual
Instal·lació silenciosa
GitHubDesktopSetup-x64.exe /s64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestartDesar un registre
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestart /l*v "%TEMP%\github-desktop-beta-install.log"Desinstal·lar
msiexec /x {42BE184E-9DEA-4FF1-8520-CAF033E9F2A1} /qn /norestart- Codi de producte MSI
- {42BE184E-9DEA-4FF1-8520-CAF033E9F2A1}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42BE184E-9DEA-4FF1-8520-CAF033E9F2A1}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
- Carpeta d’instal·lació
- %ProgramFiles(x86)%\GitHub Desktop Deployment
- DisplayVersion
- 3.5.5.0
ARM64 · EXE
El desenvolupador no ha documentat cap paràmetre d’instal·lació silenciosa per a aquest instal·lador.ARM64 · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestartDesar un registre
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestart /l*v "%TEMP%\github-desktop-beta-install.log"Desinstal·lar
msiexec /x {83989686-A7D4-4870-BFA0-F55D9358E0F9} /qn /norestart- Codi de producte MSI
- {83989686-A7D4-4870-BFA0-F55D9358E0F9}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{83989686-A7D4-4870-BFA0-F55D9358E0F9}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
- Carpeta d’instal·lació
- %ProgramFiles(x86)%\GitHub Desktop Deployment
- DisplayVersion
- 3.5.5.0
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-github-desktop-beta.ps1
$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 install-github-desktop-beta.ps1
$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 install-github-desktop-beta.ps1
$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