Kommandon för att installera omni-sql 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 cccadet.omni-sql -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id cccadet.omni-sql -e --silentwinget uninstall --id cccadet.omni-sql -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
omni-sql_0.19.2_x64-setup.exe /SEgen mapp
omni-sql_0.19.2_x64-setup.exe /S /D=C:\Apps\omni-sql- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\omni-sql
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-omni-sql.ps1
$url = 'https://github.com/cccadet/omni-sql/releases/download/v0.19.2/omni-sql_0.19.2_x64-setup.exe'
$sha256 = '007C3B49633DC226498B8EDBEE8C53E62897C9CF92EC203C0849DAE6298BBCA9'
$file = Join-Path $env:TEMP 'omni-sql_0.19.2_x64-setup.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