Ordres per instal·lar Visual Lighting sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (WiX Burn) · Tots els usuaris
Instal·lació silenciosa
VisualLighting2020r2Setup.exe /quiet /norestartDesinstal·lar
msiexec /x {2900D46B-776E-4853-A82A-04DEB22CF03D} /qn /norestart- Codi de producte MSI
- {2900d46b-776e-4853-a82a-04deb22cf03d}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2900d46b-776e-4853-a82a-04deb22cf03d}
- UpgradeCode
- {2900d46b-776e-4853-a82a-04deb22cf03d}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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