Commands for installing CC Usage 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 haishishushu.CCUsage -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id haishishushu.CCUsage -e --silentwinget uninstall --id haishishushu.CCUsage -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
CC-Usage-v0.1.21-Windows-x86_64-Setup.exe /SCustom folder
CC-Usage-v0.1.21-Windows-x86_64-Setup.exe /S /D=C:\Apps\cc-usage- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CC Usage
- Install folder
- %LocalAppData%\CC Usage
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-cc-usage.ps1
$url = 'https://github.com/haishishushu/cc-usage/releases/download/v0.1.21/CC-Usage-v0.1.21-Windows-x86_64-Setup.exe'
$sha256 = '16F6B6E8396D7EC88130D63CEC3F6C547097923FA1475AAD447EEFD3772D4ABF'
$file = Join-Path $env:TEMP 'CC-Usage-v0.1.21-Windows-x86_64-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