Kommandon för att installera Visual Lighting utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
VisualLighting2020r2Setup.exe /quiet /norestartAvinstallation
msiexec /x {2900D46B-776E-4853-A82A-04DEB22CF03D} /qn /norestart- MSI-produktkod
- {2900d46b-776e-4853-a82a-04deb22cf03d}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2900d46b-776e-4853-a82a-04deb22cf03d}
- UpgradeCode
- {2900d46b-776e-4853-a82a-04deb22cf03d}
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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