Kommandon för att installera PressReader (Classic) 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 PressReader.PressReader.Classic -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PressReader.PressReader.Classic -e --silentwinget uninstall --id PressReader.PressReader.Classic -e --silentPer installationsfil
32-bitars · EXE
Tyst installation
PressReaderSetup.exe /S /v/qnPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-pressreader-classic.ps1
$url = 'https://cache-scripts.pressdisplay.com/files/PressReaderSetup.exe?v=5249099415282716171'
$sha256 = '4AC6B7564C271540E8E56DF00AFFD9C415FB4AC04DC8C4597F917F4747C53233'
$file = Join-Path $env:TEMP 'PressReaderSetup.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 /v/qn' -Wait