Polecenia do instalacji programu cTrader CLI bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez 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 --silentWedług instalatora
64-bit · EXE (Inno Setup) · Bieżący użytkownik · en-US
Cicha instalacja
ctrader-cli-5.9.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Własny folder
ctrader-cli-5.9.0-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ctrader-cli"- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B0F3A1E2-7C84-4D6B-9A05-2E1F6C3D8B47}_is1
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
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