Commands for installing libsrt without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Haivision.libsrt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Haivision.libsrt -e --silentwinget uninstall --id Haivision.libsrt -e --silentBy installer
Any CPU · ZIP · All users
Silent install
libsrt-1.5.7-win-installer.zip /SPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-libsrt.ps1
$url = 'https://github.com/Haivision/srt/releases/download/v1.5.7/libsrt-1.5.7-win-installer.zip'
$sha256 = '5A753E4CB2194B1A9B89DBCFCA2A8141197C9F439D71F3FB58D15B52421B9B57'
$file = Join-Path $env:TEMP 'libsrt-1.5.7-win-installer.zip'
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