أوامر لتثبيت برنامج Microsoft .NET Runtime 3.1 دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Microsoft.DotNet.Runtime.3_1 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Runtime.3_1 -e --silentwinget uninstall --id Microsoft.DotNet.Runtime.3_1 -e --silentحسب المثبّت
64 بت · EXE (WiX Burn)
التثبيت الصامت
dotnet-runtime-3.1.32-win-x64.exe /quietإلغاء التثبيت
msiexec /x {784973C8-D618-4AC8-97ED-1FD52C5BDF2F} /qn /norestart- رمز منتج MSI
- {784973c8-d618-4ac8-97ed-1fd52c5bdf2f}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{784973c8-d618-4ac8-97ed-1fd52c5bdf2f}
- DisplayVersion
- 3.1.32.31915
ARM64 · EXE (WiX Burn)
التثبيت الصامت
dotnet-runtime-3.1.32-win-arm64.exe /quietإلغاء التثبيت
msiexec /x {6CC44C43-4785-4357-A07B-8C9A354692EC} /qn /norestart- رمز منتج MSI
- {6cc44c43-4785-4357-a07b-8c9a354692ec}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6cc44c43-4785-4357-a07b-8c9a354692ec}
- DisplayVersion
- 3.1.32.31915
32 بت · EXE (WiX Burn)
التثبيت الصامت
dotnet-runtime-3.1.32-win-x86.exe /quietإلغاء التثبيت
msiexec /x {9D5027E4-B04B-4AA9-92FB-1246F97F9CD7} /qn /norestart- رمز منتج MSI
- {9d5027e4-b04b-4aa9-92fb-1246f97f9cd7}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9d5027e4-b04b-4aa9-92fb-1246f97f9cd7}
- DisplayVersion
- 3.1.32.31915
ARM · ZIP
لا يحتاج إلى تثبيت (نسخة محمولة)
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-microsoft-net-runtime-3-1.ps1
$url = 'https://builds.dotnet.microsoft.com/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.exe'
$sha256 = '4393D2CDACECC096E964EA9761DFD5C336FB002B1B3AE0808E7D2D445E2DEA89'
$file = Join-Path $env:TEMP 'dotnet-runtime-3.1.32-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-3-1.ps1
$url = 'https://builds.dotnet.microsoft.com/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-arm64.exe'
$sha256 = '44B1DAA5D705411E64F2733000DE2906B4BC655AFF965A5B7E0A0573C7C6ECE2'
$file = Join-Path $env:TEMP 'dotnet-runtime-3.1.32-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-3-1.ps1
$url = 'https://builds.dotnet.microsoft.com/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x86.exe'
$sha256 = 'BC735B1A969CD03CBF1D0A70D5F16402E1030F309E5E58CA072307A30F0DF164'
$file = Join-Path $env:TEMP 'dotnet-runtime-3.1.32-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