Microsoft .NET Native Runtime کو بغیر کسی سوال کے انسٹال کرنے، دوبارہ ہٹانے اور ڈیپلائمنٹ ٹولز میں اس کی شناخت کرنے کی کمانڈز۔ کوئی کمانڈ صرف تب دکھائی جاتی ہے جب وہ یقینی ہو: مینی فیسٹ سے یا انسٹالر ٹیکنالوجی کی دستاویزی ڈیفالٹ سیٹنگ سے۔
متعلقہ گائیڈ: خاموش انسٹالیشن کے سوئچز: MSI، NSIS، Inno Setup · رجسٹری یا PowerShell سے پروگرام ان انسٹال کریں
winget کے ذریعے
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.zipGet-AppxPackage -Name Microsoft.NET.Native.Runtime.2.2 | Remove-AppxPackageARM64 · ZIP
Add-AppxPackage -Path Dependencies.zipGet-AppxPackage -Name Microsoft.NET.Native.Runtime.2.2 | Remove-AppxPackage32 بٹ · ZIP
Add-AppxPackage -Path Dependencies.zipGet-AppxPackage -Name Microsoft.NET.Native.Runtime.2.2 | Remove-AppxPackagePowerShell: ڈاؤن لوڈ، تصدیق، انسٹال
سرکاری فائل ڈاؤن لوڈ کرتا ہے، اس کا SHA256 جانچتا ہے اور خاموشی سے انسٹال کرتا ہے۔
$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 $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 $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