Ordres per instal·lar Kangaroo SQLServer sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
Kangaroo-SQLServer-9.9.1.1008-x86_64.exe /SUna altra carpeta
Kangaroo-SQLServer-9.9.1.1008-x86_64.exe /S /D=C:\Apps\kangaroo-sqlserverPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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