Commands for installing cTrader CLI 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 Spotware.cTrader.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Spotware.cTrader.CLI -e --silentwinget uninstall --id Spotware.cTrader.CLI -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
ctrader-cli-5.9.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
ctrader-cli-5.9.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ctrader-cli"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B0F3A1E2-7C84-4D6B-9A05-2E1F6C3D8B47}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-ctrader-cli.ps1
$url = 'https://getctraderwin.spotware.com/cli/winget/ctrader-cli-5.9.0-win-x64.exe'
$sha256 = '6DA989ED5C9AB95D05EC84CF8FA2DBD876A3D6943E50DB4E910FBADC96CA8CB3'
$file = Join-Path $env:TEMP 'ctrader-cli-5.9.0-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