Commando’s om Dev Proxy Beta 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 DevProxy.DevProxy.Beta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DevProxy.DevProxy.Beta -e --silentwinget uninstall --id DevProxy.DevProxy.Beta -e --silentPer installer
64-bits · EXE (Inno Setup)
Stille installatie
dev-proxy-installer-win-x64-v4.0.0-beta.14.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Andere map
dev-proxy-installer-win-x64-v4.0.0-beta.14.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\dev-proxy-beta"PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-dev-proxy-beta.ps1
$url = 'https://github.com/dotnet/dev-proxy/releases/download/v4.0.0-beta.14/dev-proxy-installer-win-x64-v4.0.0-beta.14.exe'
$sha256 = '1DFDE4C178423BA578891B524C6E80F39EF5F088C574F7DA1B3081B13E3EC993'
$file = Join-Path $env:TEMP 'dev-proxy-installer-win-x64-v4.0.0-beta.14.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait