Commands for installing Reader without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id hadc188.Reader -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id hadc188.Reader -e --silentwinget uninstall --id hadc188.Reader -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Reader-v1.6.0-windows-x64-setup.exe /SCustom folder
Reader-v1.6.0-windows-x64-setup.exe /S /D=C:\Apps\readerPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-reader.ps1
$url = 'https://github.com/hadc188/reader/releases/download/v1.6.0/Reader-v1.6.0-windows-x64-setup.exe'
$sha256 = '41F16E5DBB160B84AFFBC58FCED96D666080C25CC550C880FA27639EB948FD43'
$file = Join-Path $env:TEMP 'Reader-v1.6.0-windows-x64-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 '/S' -Wait