أوامر لتثبيت برنامج Visual Lighting دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id AcuityBrands.VisualLighting -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AcuityBrands.VisualLighting -e --silentwinget uninstall --id AcuityBrands.VisualLighting -e --silentحسب المثبّت
64 بت · EXE (WiX Burn) · جميع المستخدمين
التثبيت الصامت
VisualLighting2020r2Setup.exe /quiet /norestartإلغاء التثبيت
msiexec /x {2900D46B-776E-4853-A82A-04DEB22CF03D} /qn /norestart- رمز منتج MSI
- {2900d46b-776e-4853-a82a-04deb22cf03d}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2900d46b-776e-4853-a82a-04deb22cf03d}
- UpgradeCode
- {2900d46b-776e-4853-a82a-04deb22cf03d}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-visual-lighting.ps1
$url = 'https://abvisual.blob.core.windows.net/visual-lighting/2.11.0164/VisualLighting2020r2Setup.exe'
$sha256 = 'E90FF2C1355B6D5EE537CD6DDA024F2D9989DD485E38A4EA66B8122C7D06CAEE'
$file = Join-Path $env:TEMP 'VisualLighting2020r2Setup.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 '/quiet /norestart' -Wait