Commands for installing CodexBar for Windows 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 dontcallmejames.CodexBar -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id dontcallmejames.CodexBar -e --silentwinget uninstall --id dontcallmejames.CodexBar -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
CodexBar-Windows-0.25.8-win-x64.installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CodexBar-Windows-0.25.8-win-x64.installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codexbar-for-windows"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-codexbar-for-windows.ps1
$url = 'https://github.com/dontcallmejames/CodexBar-Windows/releases/download/v0.25.8/CodexBar-Windows-0.25.8-win-x64.installer.exe'
$sha256 = '8152EC4D070ECB308EC938696D21C4DA2D397DF36A09AB1293B2E02CE9B2CA8F'
$file = Join-Path $env:TEMP 'CodexBar-Windows-0.25.8-win-x64.installer.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