คำสั่งสำหรับติดตั้ง 0patch Agent โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id ACROSSecurity.0patch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ACROSSecurity.0patch -e --silentwinget uninstall --id ACROSSecurity.0patch -e --silentแยกตามตัวติดตั้ง
64 บิต · MSI · ผู้ใช้ทุกคน
ติดตั้งแบบเงียบ
msiexec /i latestagent /qn /norestartบันทึกไฟล์ log
msiexec /i latestagent /qn /norestart /l*v "%TEMP%\0patch-agent-install.log"PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-0patch-agent.ps1
$url = 'https://dist.0patch.com/download/latestagent'
$sha256 = '856C1446329A8C70B72881A8E853352EDCBB06E3C32C57B0E4694BE36890BF86'
$file = Join-Path $env:TEMP 'latestagent'
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