Les commandes pour installer Microsoft Foundry DevPack 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
PowerShell
winget install --id Microsoft.FoundryDevPack -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.FoundryDevPack -e --silentwinget uninstall --id Microsoft.FoundryDevPack -e --silentPar installateur
64 bits · EXE · Utilisateur actuel · en-US
Installation silencieuse
foundry-devpack-win-x64.exe --channel winget- Clé de registre de désinstallation
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft.FoundryDevPack
ARM64 · EXE · Utilisateur actuel · en-US
Installation silencieuse
foundry-devpack-win-arm64.exe --channel winget- Clé de registre de désinstallation
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft.FoundryDevPack
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-microsoft-foundry-devpack.ps1
$url = 'https://github.com/microsoft/foundry-dev-tools/releases/download/devpack-installer-0.1.6/foundry-devpack-win-x64.exe'
$sha256 = '500650EC8AAD566D4AAB6E1D2427F55165372DB83C518FD11A4DF83FAB904B6C'
$file = Join-Path $env:TEMP 'foundry-devpack-win-x64.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 '--channel winget' -Wait install-microsoft-foundry-devpack.ps1
$url = 'https://github.com/microsoft/foundry-dev-tools/releases/download/devpack-installer-0.1.6/foundry-devpack-win-arm64.exe'
$sha256 = '5015EE310EFC1637717F180217B8C7F25C2B8C264C7F6746C269AA0182FDCB37'
$file = Join-Path $env:TEMP 'foundry-devpack-win-arm64.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 '--channel winget' -Wait