คำสั่งสำหรับติดตั้ง Codex Usage Meter for Windows โดยไม่มีหน้าต่างถามตอบ ถอนการติดตั้ง และตรวจจับจากเครื่องมือกระจายซอฟต์แวร์ เราแสดงคำสั่งเฉพาะเมื่อแน่ใจเท่านั้น คือมาจากแมนิเฟสต์หรือค่าเริ่มต้นที่มีเอกสารของเทคโนโลยีตัวติดตั้งนั้น
คู่มือที่เกี่ยวข้อง: พารามิเตอร์ติดตั้งแบบเงียบ: MSI, NSIS, Inno Setup · ถอนการติดตั้งโปรแกรมผ่านรีจิสทรีหรือ PowerShell
ใช้ winget
PowerShell
winget install --id aesgalexis.CodexUsageMeter -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id aesgalexis.CodexUsageMeter -e --silentwinget uninstall --id aesgalexis.CodexUsageMeter -e --silentแยกตามตัวติดตั้ง
64 บิต · EXE (Inno Setup) · ผู้ใช้ปัจจุบัน
ติดตั้งแบบเงียบ
CodexUsageMeter-Setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-กำหนดโฟลเดอร์เอง
CodexUsageMeter-Setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-usage-meter-for-windows"- คีย์รีจิสทรีสำหรับถอนการติดตั้ง
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9B7B432F-36A6-4E80-AB97-6D020F2F0CAB}_is1
PowerShell: ดาวน์โหลด ตรวจสอบ ติดตั้ง
ดาวน์โหลดไฟล์ทางการ ตรวจสอบค่า SHA256 แล้วติดตั้งแบบเงียบ
install-codex-usage-meter-for-windows.ps1
$url = 'https://github.com/aesgalexis/codex-usage-meter-windows/releases/download/v0.6.6/CodexUsageMeter-Setup-win-x64.exe'
$sha256 = '90176CFFD0A44B21AF364903EAE329DF9F9545234E939411D844924A441E3B95'
$file = Join-Path $env:TEMP 'CodexUsageMeter-Setup-win-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait