Ordres per instal·lar Greenlight 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 UnknownSKL.Greenlight -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id UnknownSKL.Greenlight -e --silentwinget uninstall --id UnknownSKL.Greenlight -e --silentPer instal·lador
64 bits · EXE (NSIS) · en-US
Instal·lació silenciosa
Greenlight-Setup-2.4.2.exe /SUna altra carpeta
Greenlight-Setup-2.4.2.exe /S /D=C:\Apps\greenlightDesinstal·lar
msiexec /x {D6A7DDA9-B66F-5F48-B65D-6EE51DF9F294} /qn /norestart- Codi de producte MSI
- {D6A7DDA9-B66F-5F48-B65D-6EE51DF9F294}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D6A7DDA9-B66F-5F48-B65D-6EE51DF9F294}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-greenlight.ps1
$url = 'https://github.com/unknownskl/greenlight/releases/download/v2.4.2/Greenlight-Setup-2.4.2.exe'
$sha256 = '6F91BC5CD27DF2317D4FB72F482AD886350FDC3700867939E196849959D3F405'
$file = Join-Path $env:TEMP 'Greenlight-Setup-2.4.2.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