Les commandes pour installer Dev Proxy Beta sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
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 --silentPar installateur
64 bits · EXE (Inno Setup)
dev-proxy-installer-win-x64-v4.0.0-beta.12.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-dev-proxy-installer-win-x64-v4.0.0-beta.12.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\dev-proxy-beta"PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
$url = 'https://github.com/dotnet/dev-proxy/releases/download/v4.0.0-beta.12/dev-proxy-installer-win-x64-v4.0.0-beta.12.exe'
$sha256 = '76C299C6DF15532A1E0ABCBB602DAD006C7E2C4E46EAA1813CF81477D4C387CC'
$file = Join-Path $env:TEMP 'dev-proxy-installer-win-x64-v4.0.0-beta.12.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