Offline installation of .net framework 4.0.030319 runtime on windows server 2016 standard

Heizer 26 Reputation points
2021-03-31T06:54:07.003+00:00

因项目需要,在windows server 2016 standard离线安装 .net framework 4.0.030319。使用dotNetFx40_Full_x86_x64.exe进行安装,但是安装失败,提示信息为
【1.Microsoft .NET Framework 4已是此操作系统的一部分。不需要安装 .NET Framework 4可在发行组件包】
【2.已在此计算机上安装相同或更高版本的 .NET Framework 4】

NET Framework 4.0.030319 was installed offline in Windows Server 2016 Standard due to the needs of the project. The installation program :dotnetfx40_full_x86_x64.exe, but the installation failed
Prompt information:
[1.Microsoft.NET Framework 4 is already part of the operating system. You do not need to install the.NET Framework 4 to distribute the component package.]
[2.The same or higher version of the.NET Framework 4 has been installed on this computer.]

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,367 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
0 comments No comments
{count} vote

Accepted answer
  1. Cheong00 3,471 Reputation points
    2021-04-01T03:24:14.977+00:00

    The error message is correct: .NET v4 runtime can be installed on Windows Feature selection screen on Win2016. There's no need to install via dotnetfx40_full_x86_x64.exe.

    5672.07.PNG

    Alternatively you can use this command to install:

    Dism /online /Enable-Feature /FeatureName:NetFx4 /All

    Also note that the minimum version of .NET v4 runtime you can install on Win2016 is .NET v4.6. Most programs written for .NET v4.X should be able to run fine on it.


1 additional answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,476 Reputation points Microsoft Vendor
    2021-04-01T07:20:40.857+00:00

    Hi,

    .NET Framework 4.6.2 is installed on Windows Server 2016 by default so there's no need to install .Net Framework 4.0.030319.

    https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#detect-net-framework-45-and-later-versions

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.