Befehle, um Foundry Local CLI ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id Microsoft.FoundryLocal -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.FoundryLocal -e --silentwinget uninstall --id Microsoft.FoundryLocal -e --silentNach Installer
64-Bit · MSIX · Aktueller Benutzer
Stille Installation
Add-AppxPackage -Path foundry-0.12.1-win-x64.msixDeinstallation
Get-AppxPackage -Name Microsoft.FoundryLocal | Remove-AppxPackageARM64 · MSIX · Aktueller Benutzer
Stille Installation
Add-AppxPackage -Path foundry-0.12.1-win-arm64.msixDeinstallation
Get-AppxPackage -Name Microsoft.FoundryLocal | Remove-AppxPackagePowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-foundry-local.ps1
$url = 'https://github.com/microsoft/Foundry-Local/releases/download/cli-preview-0.12.1/foundry-0.12.1-win-x64.msix'
$sha256 = '083C97F80462F40833919F2C63077B3603E058208960784388127CC4A7E7A1DA'
$file = Join-Path $env:TEMP 'foundry-0.12.1-win-x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-foundry-local.ps1
$url = 'https://github.com/microsoft/Foundry-Local/releases/download/cli-preview-0.12.1/foundry-0.12.1-win-arm64.msix'
$sha256 = '720BB65D721BC20D1C2D634B8E6570D6D5D808B40A068C883E4E5913EED5DCF2'
$file = Join-Path $env:TEMP 'foundry-0.12.1-win-arm64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file