Polecenia do instalacji programu Ktor 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 JetBrains.KtorCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id JetBrains.KtorCLI -e --silentwinget uninstall --id JetBrains.KtorCLI -e --silentWedług instalatora
64-bit · MSI · en-US
Cicha instalacja
msiexec /i ktor_installer.msi /qn /norestartZapis dziennika
msiexec /i ktor_installer.msi /qn /norestart /l*v "%TEMP%\ktor-cli-install.log"Odinstalowanie
msiexec /x {899604DE-3DD4-4488-8328-22A962663E09} /qn /norestart- Kod produktu MSI
- {899604DE-3DD4-4488-8328-22A962663E09}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{899604DE-3DD4-4488-8328-22A962663E09}
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-ktor-cli.ps1
$url = 'https://github.com/ktorio/ktor-cli/releases/download/0.5.3/ktor_installer.msi'
$sha256 = '72313D0D51649E7ECC0DB81D9156C20DADCB56A76B21F6B1196FE103AB87C919'
$file = Join-Path $env:TEMP 'ktor_installer.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