.NET Runtime 5.0 Silent Install (How-To Guide)

The .NET Runtime contains the components needed to run a console app. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of .NET Runtime 5.0 from the command line using the EXE installer.

How to Install .NET Runtime 5.0 Silently

.NET Runtime 5.0.x (x86) Silent Install (EXE)

  1. Navigate to: https://dotnet.microsoft.com/download/dotnet/5.0
  2. Under .NET Runtime, select the x86 Windows Installer
  3. Download the dotnet-runtime-5.0.x-win-x86.exe to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command: dotnet-runtime-5.x.x-win-x86.exe /install /quiet /norestart
  7. Press Enter

After a few moments you will find .NET Runtime entries in the Installation Directory and Programs and Features in the Control Panel.

Software Title:.NET Runtime 5.0.x (x86)
Vendor:Microsoft Corporation
Architecture:x86
Installer Type:EXE
Silent Install Switch:dotnet-runtime-5.0.x-win-x86.exe /install /quiet /norestart
Silent Uninstall Switch:dotnet-runtime-5.0.x-win-x86.exe /uninstall /quiet /norestart
Repair Command:dotnet-runtime-5.0.x-win-x86.exe /repair /quiet /norestart
Download Link:https://dotnet.microsoft.com/download/dotnet/5.0
PowerShell Script:https://silentinstallhq.com/net-runtime-5-0-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-net-runtime-5-0-powershell/

.NET Runtime 5.0.x (x64) Silent Install (EXE)

  1. Navigate to: https://dotnet.microsoft.com/download/dotnet/5.0
  2. Under .NET Runtime, select the x64 Windows Installer
  3. Download the dotnet-runtime-5.0.x-win-x64.exe to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command: dotnet-runtime-5.0.x-win-x64.exe /install /quiet /norestart
  7. Press Enter

After a few moments you will find .NET Runtime entries in the Installation Directory and Programs and Features in the Control Panel.

Software Title:.NET Runtime 5.0.x (x64)
Vendor:Microsoft Corporation
Architecture:x64
Installer Type:EXE
Silent Install Switch:dotnet-runtime-5.0.x-win-x64.exe /install /quiet /norestart
Silent Uninstall Switch:dotnet-runtime-5.0.x-win-x64.exe /uninstall /quiet /norestart
Repair Command:dotnet-runtime-5.0.x-win-x64.exe /repair /quiet /norestart
Download Link:https://dotnet.microsoft.com/download/dotnet/5.0
PowerShell Script:https://silentinstallhq.com/net-runtime-5-0-install-and-uninstall-powershell/
Detection Script:https://silentinstallhq.com/create-a-custom-detection-script-for-net-runtime-5-0-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create an Installation Log File

The .NET Runtime installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following command to create a verbose log file with details about the installation.

.NET Runtime 5.0.x (x86) Silent Install (EXE) with Logging

dotnet-runtime-5.0.x-win-x86.exe /install /quiet /norestart /log "%WINDIR%\Temp\DotNet50x86-Install.log"

.NET Runtime 5.0.x (x64) Silent Install (EXE) with Logging

dotnet-runtime-5.0.x-win-x64.exe /install /quiet /norestart /log "%WINDIR%\Temp\DotNet50x64-Install.log"

How to Uninstall .NET Runtime 5.0 Silently

Check out the .NET Runtime 5.0 Install and Uninstall (PowerShell) post for a scripted solution.

  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

.NET Runtime 5.0.x (x86) Silent Uninstall (EXE)

dotnet-runtime-5.0.x-win-x86.exe /uninstall /quiet /norestart

.NET Runtime 5.0.x (x64) Silent Uninstall (EXE)

dotnet-runtime-5.0.x-win-x64.exe /uninstall /quiet /norestart

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.