Visual Lighting ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - 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 --silentInstaller အလိုက်
64-bit · EXE (WiX Burn) · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
VisualLighting2020r2Setup.exe /quiet /norestartဖယ်ရှားခြင်း (Uninstall)
msiexec /x {2900D46B-776E-4853-A82A-04DEB22CF03D} /qn /norestart- MSI product code
- {2900d46b-776e-4853-a82a-04deb22cf03d}
- Uninstall registry key
- 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