Commands for installing Microsoft .NET Framework 4.6.2 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.6 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Framework.DeveloperPack.4.6 -e --silentwinget uninstall --id Microsoft.DotNet.Framework.DeveloperPack.4.6 -e --silentBy installer
64-bit · EXE (WiX Burn) · All users
Silent install
NDP462-DevPack-KB3151934-ENU.exe /quiet /norestartUninstall
msiexec /x {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD} /qn /norestart- MSI product code
- {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- DisplayVersion
- 4.6.01590
ARM64 · EXE (WiX Burn) · All users
Silent install
NDP462-DevPack-KB3151934-ENU.exe /quiet /norestartUninstall
msiexec /x {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD} /qn /norestart- MSI product code
- {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- DisplayVersion
- 4.6.01590
32-bit · EXE (WiX Burn) · All users
Silent install
NDP462-DevPack-KB3151934-ENU.exe /quiet /norestartUninstall
msiexec /x {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD} /qn /norestart- MSI product code
- {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- DisplayVersion
- 4.6.01590
ARM · EXE (WiX Burn) · All users
Silent install
NDP462-DevPack-KB3151934-ENU.exe /quiet /norestartUninstall
msiexec /x {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD} /qn /norestart- MSI product code
- {5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5F01B3C4-9BEC-465D-9C68-BB97D381FFAD}
- DisplayVersion
- 4.6.01590
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-net-framework-4-6-2-developer-pack.ps1
$url = 'https://download.microsoft.com/download/e/e/c/eec79116-8305-4bd0-aa83-27610987eec6/NDP462-DevPack-KB3151934-ENU.exe'
$sha256 = 'BAA83D35CF3A63A6FD5DDF4879F07A43137416E2B068DD353B2532BE78AC6ABB'
$file = Join-Path $env:TEMP 'NDP462-DevPack-KB3151934-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 '/quiet /norestart' -Wait install-microsoft-net-framework-4-6-2-developer-pack.ps1
$url = 'https://download.microsoft.com/download/e/e/c/eec79116-8305-4bd0-aa83-27610987eec6/NDP462-DevPack-KB3151934-ENU.exe'
$sha256 = 'BAA83D35CF3A63A6FD5DDF4879F07A43137416E2B068DD353B2532BE78AC6ABB'
$file = Join-Path $env:TEMP 'NDP462-DevPack-KB3151934-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 '/quiet /norestart' -Wait install-microsoft-net-framework-4-6-2-developer-pack.ps1
$url = 'https://download.microsoft.com/download/e/e/c/eec79116-8305-4bd0-aa83-27610987eec6/NDP462-DevPack-KB3151934-ENU.exe'
$sha256 = 'BAA83D35CF3A63A6FD5DDF4879F07A43137416E2B068DD353B2532BE78AC6ABB'
$file = Join-Path $env:TEMP 'NDP462-DevPack-KB3151934-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 '/quiet /norestart' -Wait install-microsoft-net-framework-4-6-2-developer-pack.ps1
$url = 'https://download.microsoft.com/download/e/e/c/eec79116-8305-4bd0-aa83-27610987eec6/NDP462-DevPack-KB3151934-ENU.exe'
$sha256 = 'BAA83D35CF3A63A6FD5DDF4879F07A43137416E2B068DD353B2532BE78AC6ABB'
$file = Join-Path $env:TEMP 'NDP462-DevPack-KB3151934-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 '/quiet /norestart' -Wait