أوامر لتثبيت برنامج Foundry Local CLI دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام 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 --silentحسب المثبّت
64 بت · MSIX · المستخدم الحالي
التثبيت الصامت
Add-AppxPackage -Path foundry-0.14.0-win-x64.msixإلغاء التثبيت
Get-AppxPackage -Name Microsoft.FoundryLocal | Remove-AppxPackageARM64 · MSIX · المستخدم الحالي
التثبيت الصامت
Add-AppxPackage -Path foundry-0.14.0-win-arm64.msixإلغاء التثبيت
Get-AppxPackage -Name Microsoft.FoundryLocal | Remove-AppxPackagePowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
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