Kommandon för att installera OLED Sleeper 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 Quorthon13.OLEDSleeper -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Quorthon13.OLEDSleeper -e --silentwinget uninstall --id Quorthon13.OLEDSleeper -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
OLED-Sleeper-2.2.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
OLED-Sleeper-2.2.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\oled-sleeper"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{782DD1AF-DB60-48D7-8787-0838B581E16F}}_is1
- Installationsmapp
- %ProgramFiles%\OLED Sleeper
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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