أوامر لتثبيت برنامج AIUsage.NET دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id LuigiElleBalotta.AIUsageNET -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LuigiElleBalotta.AIUsageNET -e --silentwinget uninstall --id LuigiElleBalotta.AIUsageNET -e --silentحسب المثبّت
64 بت · EXE · المستخدم الحالي
التثبيت الصامت
AIUsage.NET-win-Setup.exe -sPowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-aiusage-net.ps1
$url = 'https://github.com/LuigiElleBalotta/AIUsage.NET/releases/download/v0.5.1/AIUsage.NET-win-Setup.exe'
$sha256 = 'EF51679DA516FBDD3D2B87A426D0ED8930C9F4F8CC25E5297FE8E2947C8348FD'
$file = Join-Path $env:TEMP 'AIUsage.NET-win-Setup.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