Popular: Data updated October 26, 2026

Categories

Internet1,355
Communication321
Audio & video898
Graphics & design539
Office & productivity1,120
Developer tools3,132
AI tools527
Security & privacy385
System tools3,113
Games523
Education & science239
Network & IT284

Cppcheck silent install & uninstall

Cppcheck is a static analysis tool for C/C++ code.

Commands for installing Cppcheck 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 Cppcheck.Cppcheck -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Cppcheck.Cppcheck -e --silent
winget uninstall --id Cppcheck.Cppcheck -e --silent

By installer

64-bit · MSI · All users

Silent installmsiexec /i cppcheck-2.22.0-x64-Setup.msi /qn /norestart
Write a logmsiexec /i cppcheck-2.22.0-x64-Setup.msi /qn /norestart /l*v "%TEMP%\cppcheck-install.log"
Uninstallmsiexec /x {B9BB529E-C446-4B39-B047-B6B4DB91B62F} /qn /norestart
MSI product code
{B9BB529E-C446-4B39-B047-B6B4DB91B62F}
Uninstall registry key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B9BB529E-C446-4B39-B047-B6B4DB91B62F}
UpgradeCode
{7E94124C-1CD1-433F-9423-4614E52300DD}
Install folder
%ProgramFiles%/Cppcheck

PowerShell: download, verify, install

Downloads the official file, checks its SHA256 and installs it silently.

install-cppcheck.ps1
$url = 'https://github.com/cppcheck-opensource/cppcheck/releases/download/2.22.0/cppcheck-2.22.0-x64-Setup.msi'
$sha256 = '3929162BAB7E71D1B9B18708EC054FB0188BFC8EA1660979ED95837F5A9F547B'
$file = Join-Path $env:TEMP 'cppcheck-2.22.0-x64-Setup.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait