คำสั่งสำหรับติดตั้ง GitHub Desktop Beta โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ 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 --silentแยกตามตัวติดตั้ง
64 บิต · EXE · ผู้ใช้ปัจจุบัน
ติดตั้งแบบเงียบ
GitHubDesktopSetup-x64.exe /s64 บิต · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestartบันทึกไฟล์ log
msiexec /i GitHubDesktopSetup-x64.msi /qn /norestart /l*v "%TEMP%\github-desktop-beta-install.log"ถอนการติดตั้ง
msiexec /x {42BE184E-9DEA-4FF1-8520-CAF033E9F2A1} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {42BE184E-9DEA-4FF1-8520-CAF033E9F2A1}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42BE184E-9DEA-4FF1-8520-CAF033E9F2A1}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
- โฟลเดอร์ที่ติดตั้ง
- %ProgramFiles(x86)%\GitHub Desktop Deployment
- DisplayVersion
- 3.5.5.0
ARM64 · EXE
ผู้เผยแพร่ไม่ได้ระบุสวิตช์ติดตั้งแบบเงียบสำหรับตัวติดตั้งนี้ARM64 · MSI · ผู้ใช้ทุกคน · en-US
ติดตั้งแบบเงียบ
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestartบันทึกไฟล์ log
msiexec /i GitHubDesktopSetup-arm64.msi /qn /norestart /l*v "%TEMP%\github-desktop-beta-install.log"ถอนการติดตั้ง
msiexec /x {83989686-A7D4-4870-BFA0-F55D9358E0F9} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {83989686-A7D4-4870-BFA0-F55D9358E0F9}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{83989686-A7D4-4870-BFA0-F55D9358E0F9}
- UpgradeCode
- {00D8E2EE-13EA-5BEB-87F0-70EFC46A7D4A}
- โฟลเดอร์ที่ติดตั้ง
- %ProgramFiles(x86)%\GitHub Desktop Deployment
- DisplayVersion
- 3.5.5.0
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
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