Kommandon för att installera Microsoft .NET Runtime 9.0 utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id Microsoft.DotNet.Runtime.9 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Runtime.9 -e --silentwinget uninstall --id Microsoft.DotNet.Runtime.9 -e --silentPer installationsfil
64-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
dotnet-runtime-9.0.23-win-x64.exe /quietAvinstallation
msiexec /x {E78317C7-7063-4845-9B5F-7220851B2610} /qn /norestart- MSI-produktkod
- {e78317c7-7063-4845-9b5f-7220851b2610}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e78317c7-7063-4845-9b5f-7220851b2610}
- DisplayVersion
- 9.0.23.36622
ARM64 · EXE (WiX Burn) · Alla användare
Tyst installation
dotnet-runtime-9.0.23-win-arm64.exe /quietAvinstallation
msiexec /x {871860DA-C775-454B-A489-9426A3E81F94} /qn /norestart- MSI-produktkod
- {871860da-c775-454b-a489-9426a3e81f94}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{871860da-c775-454b-a489-9426a3e81f94}
- DisplayVersion
- 9.0.23.36622
32-bitars · EXE (WiX Burn) · Alla användare
Tyst installation
dotnet-runtime-9.0.23-win-x86.exe /quietAvinstallation
msiexec /x {DAB5AFDD-F340-4E5F-B97A-D96E725BC480} /qn /norestart- MSI-produktkod
- {dab5afdd-f340-4e5f-b97a-d96e725bc480}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{dab5afdd-f340-4e5f-b97a-d96e725bc480}
- DisplayVersion
- 9.0.23.36622
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-microsoft-net-runtime-9-0.ps1
$url = 'https://download.microsoft.com/download/e724b818-d50e-43ba-ba6e-0219dac3b858/15b7263a-d531-404b-8361-f2ef02426f9f/dotnet-runtime-9.0.23-win-x64.exe'
$sha256 = '4B808B4C5E35AD8D2D3F5462FB6015A865C8123A265C642C25BE3500D8CC79D9'
$file = Join-Path $env:TEMP 'dotnet-runtime-9.0.23-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-9-0.ps1
$url = 'https://download.microsoft.com/download/e724b818-d50e-43ba-ba6e-0219dac3b858/855c79cc-6542-462c-90a1-f30d1405c21c/dotnet-runtime-9.0.23-win-arm64.exe'
$sha256 = '2086B4B3D655CF79C892BF0F781A336B45CA952BB4A578B07AB655998F64EF70'
$file = Join-Path $env:TEMP 'dotnet-runtime-9.0.23-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-9-0.ps1
$url = 'https://download.microsoft.com/download/e724b818-d50e-43ba-ba6e-0219dac3b858/a31b93f2-897e-44ad-b4a4-bed64627c574/dotnet-runtime-9.0.23-win-x86.exe'
$sha256 = '5EDDBB8EDE5F3839048304D1C927EE9F5C89A92377AC236B7BF0EC28554AB2F4'
$file = Join-Path $env:TEMP 'dotnet-runtime-9.0.23-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