Commands for installing CTerm 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 CTerm.CTerm -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CTerm.CTerm -e --silentwinget uninstall --id CTerm.CTerm -e --silentBy installer
32-bit · EXE (Inno Setup) · All users
Silent install
CTerm-4.1.3.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CTerm-4.1.3.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cterm"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B05F2C14-9201-4986-8262-FAC28D84A813}}_is1
- Install folder
- %ProgramFiles(x86)%\CTerm4
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-cterm.ps1
$url = 'https://gitee.com/devcpp/cterm/releases/download/v4.1.3/CTerm-4.1.3.exe'
$sha256 = '56596025E78FE4A90E818B3D2EA2986FC8ABB01A0AE7C5AE0E3D6ACD68B92ADF'
$file = Join-Path $env:TEMP 'CTerm-4.1.3.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