คำสั่งสำหรับติดตั้ง Geth โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id Ethereum.geth -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Ethereum.geth -e --silentwinget uninstall --id Ethereum.geth -e --silentแยกตามตัวติดตั้ง
64 บิต · EXE (NSIS) · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
geth-windows-amd64-1.17.9-9dffe6e9.exe /Sกำหนดโฟลเดอร์เอง
geth-windows-amd64-1.17.9-9dffe6e9.exe /S /D=C:\Apps\geth- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ethereum Geth
- DisplayVersion
- 1.17.9-9dffe6e9
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-geth.ps1
$url = 'https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.17.9-9dffe6e9.exe'
$sha256 = '3F5D7405D0C1D9524B53D21F4EA6C9B97728129B471B4BEC36C95EAC132BD1DD'
$file = Join-Path $env:TEMP 'geth-windows-amd64-1.17.9-9dffe6e9.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