Commands for installing Codex Usage Meter 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 aesgalexis.CodexUsageMeter -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id aesgalexis.CodexUsageMeter -e --silentwinget uninstall --id aesgalexis.CodexUsageMeter -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user
Silent install
CodexUsageMeter-Setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CodexUsageMeter-Setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-usage-meter-for-windows"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9B7B432F-36A6-4E80-AB97-6D020F2F0CAB}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-codex-usage-meter-for-windows.ps1
$url = 'https://github.com/aesgalexis/codex-usage-meter-windows/releases/download/v0.6.6/CodexUsageMeter-Setup-win-x64.exe'
$sha256 = '90176CFFD0A44B21AF364903EAE329DF9F9545234E939411D844924A441E3B95'
$file = Join-Path $env:TEMP 'CodexUsageMeter-Setup-win-x64.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