Commands for installing Microsoft Foundry DevPack 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 Microsoft.FoundryDevPack -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.FoundryDevPack -e --silentwinget uninstall --id Microsoft.FoundryDevPack -e --silentBy installer
64-bit · EXE · Current user · en-US
Silent install
foundry-devpack-win-x64.exe --channel winget- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft.FoundryDevPack
ARM64 · EXE · Current user · en-US
Silent install
foundry-devpack-win-arm64.exe --channel winget- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft.FoundryDevPack
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-foundry-devpack.ps1
$url = 'https://github.com/microsoft/foundry-dev-tools/releases/download/devpack-installer-0.1.5/foundry-devpack-win-x64.exe'
$sha256 = '5497AAAA6C7B06293AF8DF370E1A173897B10079AC10F0D15A955677A702C2F6'
$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.5/foundry-devpack-win-arm64.exe'
$sha256 = 'F63645A205B514432085CB2D3A8F20494267CC614122FE1A4A53F88061072CA0'
$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