أوامر لتثبيت برنامج Microsoft .NET Native Runtime دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.DotNet.Native.Runtime -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Native.Runtime -e --silentwinget uninstall --id Microsoft.DotNet.Native.Runtime -e --silentحسب المثبّت
64 بت · ZIP
التثبيت الصامت
Add-AppxPackage -Path Dependencies.zipإلغاء التثبيت
Get-AppxPackage -Name Microsoft.NET.Native.Runtime.2.2 | Remove-AppxPackageARM64 · ZIP
التثبيت الصامت
Add-AppxPackage -Path Dependencies.zipإلغاء التثبيت
Get-AppxPackage -Name Microsoft.NET.Native.Runtime.2.2 | Remove-AppxPackage32 بت · ZIP
التثبيت الصامت
Add-AppxPackage -Path Dependencies.zipإلغاء التثبيت
Get-AppxPackage -Name Microsoft.NET.Native.Runtime.2.2 | Remove-AppxPackagePowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-microsoft-net-native-runtime.ps1
$url = 'https://github.com/microsoft/busiotools/releases/download/v2.8.0/Dependencies.zip'
$sha256 = '91B666A399CBA3E6D3A6816C80B0422D4BCDAB2A7FBE6F19E6D080B63BDC637F'
$file = Join-Path $env:TEMP 'Dependencies.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-microsoft-net-native-runtime.ps1
$url = 'https://github.com/microsoft/busiotools/releases/download/v2.8.0/Dependencies.zip'
$sha256 = '91B666A399CBA3E6D3A6816C80B0422D4BCDAB2A7FBE6F19E6D080B63BDC637F'
$file = Join-Path $env:TEMP 'Dependencies.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-microsoft-net-native-runtime.ps1
$url = 'https://github.com/microsoft/busiotools/releases/download/v2.8.0/Dependencies.zip'
$sha256 = '91B666A399CBA3E6D3A6816C80B0422D4BCDAB2A7FBE6F19E6D080B63BDC637F'
$file = Join-Path $env:TEMP 'Dependencies.zip'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file