د Microsoft .NET Runtime 5.0 بې پوښتنې نصبولو، بیا لرې کولو او د ځای پر ځای کولو وسایلو له لارې د پېژندلو کمانډونه. کمانډ یوازې هغه وخت ښودل کېږي چې ډاډمن وي: له مانیفسټ څخه یا د نصبوونکي ټکنالوژۍ له لیکل شوي اصلي حالت څخه.
اړوند لارښود: د چوپه نصب سویچونه: MSI، NSIS، Inno Setup · پروګرام د ریجسټري یا PowerShell په مرسته لرې کړئ
د winget سره
PowerShell
winget install --id Microsoft.DotNet.Runtime.5 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Runtime.5 -e --silentwinget uninstall --id Microsoft.DotNet.Runtime.5 -e --silentد نصبوونکي له مخې
64-bit · EXE (WiX Burn)
چوپه نصب
dotnet-runtime-5.0.17-win-x64.exe /quietلرې کول (Uninstall)
msiexec /x {A699B48E-5748-4980-AD92-0B61B1D9D718} /qn /norestart- د MSI د محصول کوډ
- {a699b48e-5748-4980-ad92-0b61b1d9d718}
- د Uninstall ریجسټري کیلي
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a699b48e-5748-4980-ad92-0b61b1d9d718}
- DisplayVersion
- 5.0.17.31213
ARM64 · EXE (WiX Burn)
چوپه نصب
dotnet-runtime-5.0.17-win-arm64.exe /quietلرې کول (Uninstall)
msiexec /x {A16627D9-B5B3-4D17-AF16-598341F32543} /qn /norestart- د MSI د محصول کوډ
- {a16627d9-b5b3-4d17-af16-598341f32543}
- د Uninstall ریجسټري کیلي
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a16627d9-b5b3-4d17-af16-598341f32543}
- DisplayVersion
- 5.0.17.31213
32-bit · EXE (WiX Burn)
چوپه نصب
dotnet-runtime-5.0.17-win-x86.exe /quietلرې کول (Uninstall)
msiexec /x {2DD73F73-784C-4C71-9495-FD11CD6EDDF6} /qn /norestart- د MSI د محصول کوډ
- {2dd73f73-784c-4c71-9495-fd11cd6eddf6}
- د Uninstall ریجسټري کیلي
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2dd73f73-784c-4c71-9495-fd11cd6eddf6}
- DisplayVersion
- 5.0.17.31213
PowerShell: ډاونلوډ، تایید، نصب
رسمي فایل ډاونلوډوي، SHA256 یې ګوري او په چوپه توګه یې نصبوي.
install-microsoft-net-runtime-5-0.ps1
$url = 'https://builds.dotnet.microsoft.com/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x64.exe'
$sha256 = '8387E162223AC2ADC4D0F24765A886052B8C514BB4EB3D7CC9333C747CD9A03B'
$file = Join-Path $env:TEMP 'dotnet-runtime-5.0.17-win-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait install-microsoft-net-runtime-5-0.ps1
$url = 'https://builds.dotnet.microsoft.com/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-arm64.exe'
$sha256 = '2D1A5D53717E92D6DEF6415C81ACEA3D1FBD729EC3D06F3B4312D57EE5906B65'
$file = Join-Path $env:TEMP 'dotnet-runtime-5.0.17-win-arm64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait install-microsoft-net-runtime-5-0.ps1
$url = 'https://builds.dotnet.microsoft.com/dotnet/Runtime/5.0.17/dotnet-runtime-5.0.17-win-x86.exe'
$sha256 = '40A978DA46EFA7E66DE2C40D952778118B2207BA2344F6D59032D114CBDB40DA'
$file = Join-Path $env:TEMP 'dotnet-runtime-5.0.17-win-x86.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait