Commands for installing kblocks 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 KDE.KBlocks -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.KBlocks -e --silentwinget uninstall --id KDE.KBlocks -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
kblocks-master-1019-windows-cl-msvc2022-x86_64.exe /SCustom folder
kblocks-master-1019-windows-cl-msvc2022-x86_64.exe /S /D=C:\Apps\kblocks- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\kblocks
64-bit · EXE (NSIS) · All users
Silent install
kblocks-master-1019-windows-cl-msvc2022-x86_64.exe /SCustom folder
kblocks-master-1019-windows-cl-msvc2022-x86_64.exe /S /D=C:\Apps\kblocks- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\kblocks
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-kblocks.ps1
$url = 'https://cdn.kde.org/ci-builds/games/kblocks/master/windows/kblocks-master-1019-windows-cl-msvc2022-x86_64.exe'
$sha256 = 'D31C5DE4F1FF92CDA0D1F95F4D90D71A9193A9C460523BE2E8AE7797651ED9BA'
$file = Join-Path $env:TEMP 'kblocks-master-1019-windows-cl-msvc2022-x86_64.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 install-kblocks.ps1
$url = 'https://cdn.kde.org/ci-builds/games/kblocks/master/windows/kblocks-master-1019-windows-cl-msvc2022-x86_64.exe'
$sha256 = 'D31C5DE4F1FF92CDA0D1F95F4D90D71A9193A9C460523BE2E8AE7797651ED9BA'
$file = Join-Path $env:TEMP 'kblocks-master-1019-windows-cl-msvc2022-x86_64.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