Commands for installing Dev-C++ 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 Orwell.Dev-C++ -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Orwell.Dev-C++ -e --silentwinget uninstall --id Orwell.Dev-C++ -e --silentBy installer
32-bit · EXE (NSIS) · All users
Silent install
download /SCustom folder
download /S /D=C:\Apps\dev-c-plus-plus- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Dev-C++
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-dev-c-plus-plus.ps1
$url = 'https://sourceforge.net/projects/orwelldevcpp/files/Setup%20Releases/Dev-Cpp%205.11%20TDM-GCC%204.9.2%20Setup.exe/download'
$sha256 = 'FAAD96BBCC51F115C9EDD691785D1309E7663B67DCFCF7C11515C3D28C9C0F1F'
$file = Join-Path $env:TEMP 'download'
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