أوامر لتثبيت برنامج Invokeai دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id InvokeAI,Inc.InvokeCommunityEdition -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id InvokeAI,Inc.InvokeCommunityEdition -e --silentwinget uninstall --id InvokeAI,Inc.InvokeCommunityEdition -e --silentحسب المثبّت
64 بت · EXE (NSIS)
التثبيت الصامت
Invoke.Community.Edition.Setup.latest.exe /Sمجلد مخصص
Invoke.Community.Edition.Setup.latest.exe /S /D=C:\Apps\invokeaiPowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-invokeai.ps1
$url = 'https://github.com/invoke-ai/launcher/releases/latest/download/Invoke.Community.Edition.Setup.latest.exe'
$sha256 = '922C321752E27D38FCB6B1867E2EBA6889959811819C2562896BD01F38ACA2C1'
$file = Join-Path $env:TEMP 'Invoke.Community.Edition.Setup.latest.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