PressReader (Classic)を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
32ビット · EXE
サイレントインストール
PressReaderSetup.exe /S /v/qnPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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