Ordres per instal·lar Foundry Local CLI sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · MSIX · Usuari actual
Instal·lació silenciosa
Add-AppxPackage -Path foundry-0.14.0-win-x64.msixDesinstal·lar
Get-AppxPackage -Name Microsoft.FoundryLocal | Remove-AppxPackageARM64 · MSIX · Usuari actual
Instal·lació silenciosa
Add-AppxPackage -Path foundry-0.14.0-win-arm64.msixDesinstal·lar
Get-AppxPackage -Name Microsoft.FoundryLocal | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-foundry-local.ps1
$url = 'https://github.com/microsoft/Foundry-Local/releases/download/cli-preview-0.14.0/foundry-0.14.0-win-x64.msix'
$sha256 = '53DADCF8E7E8449E2B635F8B55EB8DBFEB3F0F7F548B7327966A5C233DB520B1'
$file = Join-Path $env:TEMP 'foundry-0.14.0-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.14.0/foundry-0.14.0-win-arm64.msix'
$sha256 = '156FB1C092564EA8D51E949AECE42C136425845A9F5DC344480195DB8E4A11B4'
$file = Join-Path $env:TEMP 'foundry-0.14.0-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