Commando’s om Kangaroo SQLServer zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id Taozuhong.KangarooSQLServer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Taozuhong.KangarooSQLServer -e --silentwinget uninstall --id Taozuhong.KangarooSQLServer -e --silentPer installer
64-bits · EXE (NSIS) · Alle gebruikers
Stille installatie
Kangaroo-SQLServer-9.9.1.1008-x86_64.exe /SAndere map
Kangaroo-SQLServer-9.9.1.1008-x86_64.exe /S /D=C:\Apps\kangaroo-sqlserverPowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-kangaroo-sqlserver.ps1
$url = 'https://github.com/dbkangaroo/kangaroo/releases/download/v9.9.1.1008/Kangaroo-SQLServer-9.9.1.1008-x86_64.exe'
$sha256 = 'D719741A2C8B28100E2C625BE531FDD393BEA7E0A6402EB6B3BE0E81BF60AD2A'
$file = Join-Path $env:TEMP 'Kangaroo-SQLServer-9.9.1.1008-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