Kommandon för att installera kblocks utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
kblocks-master-996-windows-cl-msvc2022-x86_64.exe /SEgen mapp
kblocks-master-996-windows-cl-msvc2022-x86_64.exe /S /D=C:\Apps\kblocks- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\kblocks
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
kblocks-master-996-windows-cl-msvc2022-x86_64.exe /SEgen mapp
kblocks-master-996-windows-cl-msvc2022-x86_64.exe /S /D=C:\Apps\kblocks- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\kblocks
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-kblocks.ps1
$url = 'https://cdn.kde.org/ci-builds/games/kblocks/master/windows/kblocks-master-996-windows-cl-msvc2022-x86_64.exe'
$sha256 = '7C040564F7FDB861AAA702F4E8DFE30115549B85D4336445FAA26795EA2E22FF'
$file = Join-Path $env:TEMP 'kblocks-master-996-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-996-windows-cl-msvc2022-x86_64.exe'
$sha256 = '7C040564F7FDB861AAA702F4E8DFE30115549B85D4336445FAA26795EA2E22FF'
$file = Join-Path $env:TEMP 'kblocks-master-996-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