Commands for installing KCode 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 7836246.KCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id 7836246.KCode -e --silentwinget uninstall --id 7836246.KCode -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
KCode-0.0.6-win-x64.exe /SCustom folder
KCode-0.0.6-win-x64.exe /S /D=C:\Apps\kcode- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\9f65b98e-007d-50a8-a79f-fbe8469bb5d9
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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