Commands for installing USBPcap 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 desowin.USBPcap -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id desowin.USBPcap -e --silentwinget uninstall --id desowin.USBPcap -e --silentBy installer
64-bit · EXE (NSIS)
Silent install
USBPcapSetup-1.5.4.0.exe /SCustom folder
USBPcapSetup-1.5.4.0.exe /S /D=C:\Apps\usbpcapPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-usbpcap.ps1
$url = 'https://github.com/desowin/usbpcap/releases/download/1.5.4.0/USBPcapSetup-1.5.4.0.exe'
$sha256 = '87A7EDF9BBBCF07B5F4373D9A192A6770D2FF3ADD7AA1E276E82E38582CCB622'
$file = Join-Path $env:TEMP 'USBPcapSetup-1.5.4.0.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