คำสั่งสำหรับติดตั้ง gedit Text Editor โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id gnome.gedit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id gnome.gedit -e --silentwinget uninstall --id gnome.gedit -e --silentแยกตามตัวติดตั้ง
64 บิต · MSI · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
msiexec /i gedit-x86_64-3.20.1.msi /qn /norestartบันทึกไฟล์ log
msiexec /i gedit-x86_64-3.20.1.msi /qn /norestart /l*v "%TEMP%\gedit-text-editor-install.log"ถอนการติดตั้ง
msiexec /x {E84126DF-D774-4F30-A3D7-CC2E3EC36A33} /qn /norestart- รหัสผลิตภัณฑ์ MSI
- {E84126DF-D774-4F30-A3D7-CC2E3EC36A33}
- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E84126DF-D774-4F30-A3D7-CC2E3EC36A33}
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-gedit-text-editor.ps1
$url = 'https://download.gnome.org/binaries/win64/gedit/gedit-x86_64-3.20.1.msi'
$sha256 = '6F5BE888C1128C302181D75FDECE6085D4EB94391DC92D25DF48946B2DD0A630'
$file = Join-Path $env:TEMP 'gedit-x86_64-3.20.1.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