SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date

MJ Skeet 35 Reputation points
2023-03-23T18:04:44.7966667+00:00

I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest .NET Framework, and my OS says it's already installed. I tried to install 4.0 .NET and the message is that it's included with my installed version. I tried to install 2.0 .NET framework, and the installer doesn't launch. The error's help link is dead. I've attached the log file.2023-03-22_10-36-55

Component name:                SQL Server Setup Support Files
  Component error code:          -2147483648
  Component log file:            C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\20230323_112030\SqlSupport_Cpu64_1.log
  Error description:             The Microsoft .NET Framework 2.0 or 4.0 must be installed on your computer before you can install Microsoft SQL Server 2022 Setup Support Files. Please install the .NET Framework 2.0 or 4.0 and then install Microsoft SQL Server 2022 Setup Support Files.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=16.0.1000.6&EvtType=SqlSupport.msi%40CA_ErrorPrereqDotNet20Or40%40-2147483648
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,398 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,760 questions
{count} votes

9 answers

Sort by: Most helpful
  1. Norman Simoneau 25 Reputation points
    2023-04-29T01:18:22.56+00:00

    I got it to work by right-clicking on setup.exe and running as administrator (After installing Visual Studio 2019 and restarting.)

    0 comments No comments

  2. Ahmed, Zubair 0 Reputation points
    2023-05-21T14:33:55.5133333+00:00

    For me rebooting my system and then reinstall SQL server 2022 Ex Ed (by right clicking and select 'Run as admin') helped :-)

    0 comments No comments

  3. Artur Kozlowski 2 Reputation points
    2023-07-10T18:41:08.5533333+00:00

    Hi @MJ Skeet

    Were you able to fix that issue?

    0 comments No comments

  4. Artur Kozlowski 2 Reputation points
    2023-10-04T11:58:50.6966667+00:00

    Hi there,

    I just got a new laptop and ended up with the same error. Is there a way to fix it?

    0 comments No comments