Kommandon för att installera PothosSDR 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 Pothosware.PothosSDR -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Pothosware.PothosSDR -e --silentwinget uninstall --id Pothosware.PothosSDR -e --silentPer installationsfil
64-bitars · EXE (NSIS)
Tyst installation
PothosSDR-2021.07.25-vc16-x64.exe /SEgen mapp
PothosSDR-2021.07.25-vc16-x64.exe /S /D=C:\Apps\pothossdrPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-pothossdr.ps1
$url = 'https://downloads.myriadrf.org/builds/PothosSDR/PothosSDR-2021.07.25-vc16-x64.exe'
$sha256 = '705D962F578A9595A31D00E71AC68EB5CA951F3D3CB6091BF99BD13368960DA9'
$file = Join-Path $env:TEMP 'PothosSDR-2021.07.25-vc16-x64.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