Commands for installing Win-CodexBar 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 Finesssee.Win-CodexBar -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Finesssee.Win-CodexBar -e --silentwinget uninstall --id Finesssee.Win-CodexBar -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user
Silent install
CodexBar-0.70.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CodexBar-0.70.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\win-codexbar"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinCodexBar_is1
- DisplayVersion
- 0.70.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-win-codexbar.ps1
$url = 'https://github.com/nesszer/Win-CodexBar/releases/download/v0.70.0/CodexBar-0.70.0-Setup.exe'
$sha256 = 'F7ABCD53106E9FDFE7E49BC47FBBF33057A98C710B47B5C77ABE36D5D0C7D800'
$file = Join-Path $env:TEMP 'CodexBar-0.70.0-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait