Ordres per instal·lar Kangaroo SQLite 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.KangarooSQLite -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Taozuhong.KangarooSQLite -e --silentwinget uninstall --id Taozuhong.KangarooSQLite -e --silentPer instal·lador
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
Kangaroo-SQLite-9.9.1.1008-x86_64.exe /SUna altra carpeta
Kangaroo-SQLite-9.9.1.1008-x86_64.exe /S /D=C:\Apps\kangaroo-sqlitePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-kangaroo-sqlite.ps1
$url = 'https://github.com/dbkangaroo/kangaroo/releases/download/v9.9.1.1008/Kangaroo-SQLite-9.9.1.1008-x86_64.exe'
$sha256 = 'D12B98214D8C0C0CA6207ECAC002CA2787550825520E9C61DC74BF881D48E78B'
$file = Join-Path $env:TEMP 'Kangaroo-SQLite-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