Commando’s om HTTP Toolkit zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id HTTPToolKit.HTTPToolKit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HTTPToolKit.HTTPToolKit -e --silentwinget uninstall --id HTTPToolKit.HTTPToolKit -e --silentPer installer
64-bits · EXE (NSIS) · Huidige gebruiker · en-US
Stille installatie
HttpToolkit-1.27.4.exe /SAndere map
HttpToolkit-1.27.4.exe /S /D=C:\Apps\http-toolkitPowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-http-toolkit.ps1
$url = 'https://github.com/httptoolkit/httptoolkit-desktop/releases/download/v1.27.4/HttpToolkit-1.27.4.exe'
$sha256 = '52B6E853216781C3B85C8B0E97A2F56762E0F862D2F43EB57B30C8E2E250C0F6'
$file = Join-Path $env:TEMP 'HttpToolkit-1.27.4.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