Ordres per instal·lar OLED Sleeper 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 Quorthon13.OLEDSleeper -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Quorthon13.OLEDSleeper -e --silentwinget uninstall --id Quorthon13.OLEDSleeper -e --silentPer instal·lador
32 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
OLED-Sleeper-2.2.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
OLED-Sleeper-2.2.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\oled-sleeper"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{782DD1AF-DB60-48D7-8787-0838B581E16F}}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\OLED Sleeper
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-oled-sleeper.ps1
$url = 'https://github.com/Quorthon13/OLED-Sleeper/releases/download/v2.2.0/OLED-Sleeper-2.2.0-Setup.exe'
$sha256 = 'BCA309821C8A14905EB77802F785C9E0336BA8728A1746EC66019B78C76ECF07'
$file = Join-Path $env:TEMP 'OLED-Sleeper-2.2.0-Setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait