Commands for installing ImageView 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 TonyPottier.ImageView -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TonyPottier.ImageView -e --silentwinget uninstall --id TonyPottier.ImageView -e --silentBy installer
32-bit · EXE (NSIS) · All users · en-US
Silent install
ImageView_2.4.6_Setup.exe /SCustom folder
ImageView_2.4.6_Setup.exe /S /D=C:\Apps\imageviewPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-imageview.ps1
$url = 'https://github.com/tonyp7/ImageView/releases/download/v2.4.6/ImageView_2.4.6_Setup.exe'
$sha256 = '7B94D378EBE5F488C8774869DB9974439822BC5D6CE960205A11C56078AA66C7'
$file = Join-Path $env:TEMP 'ImageView_2.4.6_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