Polecenia do instalacji programu KCode 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 7836246.KCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id 7836246.KCode -e --silentwinget uninstall --id 7836246.KCode -e --silentWedług instalatora
64-bit · EXE (NSIS) · Bieżący użytkownik
Cicha instalacja
KCode-0.0.6-win-x64.exe /SWłasny folder
KCode-0.0.6-win-x64.exe /S /D=C:\Apps\kcode- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\9f65b98e-007d-50a8-a79f-fbe8469bb5d9
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-kcode.ps1
$url = 'https://github.com/7836246/kcode/releases/download/v0.0.6/KCode-0.0.6-win-x64.exe'
$sha256 = '926FCA4349B4D7D883A109B636A2767C292B2C9A5C12EF70AE510D0670CA64A3'
$file = Join-Path $env:TEMP 'KCode-0.0.6-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 '/S' -Wait