פקודות להתקנה של Microsoft .NET Native Runtime בלי חלונות ושאלות, להסרה ולזיהוי בכלי הפצה. פקודה מוצגת רק כשהיא ודאית: מתוך המניפסט או מברירת המחדל המתועדת של טכנולוגיית ההתקנה.
מדריך קשור: פרמטרים להתקנה שקטה: MSI, NSIS, Inno Setup · הסרת תוכנה דרך הרישום או 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