Commands for installing Microsoft .NET Framework Developer Pack without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Microsoft.DotNet.Framework.DeveloperPack_4 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Framework.DeveloperPack_4 -e --silentwinget uninstall --id Microsoft.DotNet.Framework.DeveloperPack_4 -e --silentBy installer
64-bit · EXE
Silent install
NDP481-DevPack-ENU.exe /install /quiet /norestartUninstall
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- MSI product code
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
ARM64 · EXE
Silent install
NDP481-DevPack-ENU.exe /install /quiet /norestartUninstall
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- MSI product code
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
32-bit · EXE
Silent install
NDP481-DevPack-ENU.exe /install /quiet /norestartUninstall
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- MSI product code
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
Any CPU · EXE
Silent install
NDP481-DevPack-ENU.exe /install /quiet /norestartUninstall
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- MSI product code
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.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 '/install /quiet /norestart' -Wait install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.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 '/install /quiet /norestart' -Wait install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.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 '/install /quiet /norestart' -Wait install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.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 '/install /quiet /norestart' -Wait