أوامر لتثبيت برنامج LiveAgent دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Stack-Cairn.LiveAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Stack-Cairn.LiveAgent -e --silentwinget uninstall --id Stack-Cairn.LiveAgent -e --silentحسب المثبّت
64 بت · EXE (NSIS) · المستخدم الحالي
التثبيت الصامت
LiveAgent-v1.3.7-Windows-x64-Setup.exe /Sمجلد مخصص
LiveAgent-v1.3.7-Windows-x64-Setup.exe /S /D=C:\Apps\liveagent- مفتاح إلغاء التثبيت في السجل
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\LiveAgent
- مجلد التثبيت
- %LocalAppData%\LiveAgent
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i LiveAgent-v1.3.7-Windows-x64.msi /qn /norestartكتابة ملف سجل
msiexec /i LiveAgent-v1.3.7-Windows-x64.msi /qn /norestart /l*v "%TEMP%\liveagent-install.log"إلغاء التثبيت
msiexec /x {48C830E2-4AB5-4EE9-BA9E-3743081BD5BC} /qn /norestart- رمز منتج MSI
- {48C830E2-4AB5-4EE9-BA9E-3743081BD5BC}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{48C830E2-4AB5-4EE9-BA9E-3743081BD5BC}
- UpgradeCode
- {5D56E0D3-9926-5493-A176-8C01F12BA19A}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-liveagent.ps1
$url = 'https://github.com/Stack-Cairn/LiveAgent/releases/download/v1.3.7/LiveAgent-v1.3.7-Windows-x64-Setup.exe'
$sha256 = '3B9283382BB5939F7DB3CF8B861A53DA595373F5C61492695C8C4D4A9FD6115C'
$file = Join-Path $env:TEMP 'LiveAgent-v1.3.7-Windows-x64-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 install-liveagent.ps1
$url = 'https://github.com/Stack-Cairn/LiveAgent/releases/download/v1.3.7/LiveAgent-v1.3.7-Windows-x64.msi'
$sha256 = '85D52CEF36F0A572631067F70CD5D812634B93E223BA3281CBB053847146451C'
$file = Join-Path $env:TEMP 'LiveAgent-v1.3.7-Windows-x64.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