While installing Sql server 2019 Developer edition (download media) in windows 11 it showing this error

Anurag Singh 1 Reputation point

The following error was encountered that prevents SQL Server Installer from continuing: Exception has been thrown by the target of an invocation.


SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,117 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,667 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,456 Reputation points

    Hi @Anurag Singh ,

    Welcome to Microsoft Q&A!
    This is a generic error. It seems to be a problem with your system environment variables. You can refer to this picture to check if you have too long or multiple duplicate Paths in your environment variables.
    If you can't see it clearly, you can also view the Path by accessing the registry.

    • Check the length of the Path variable by pasting it into a word document and check the character count.
    • See this thread about shorting the character count.
    • Reboot your PC
      In addition, This will also occur when the “FIPS-compliant algorithms” policy is enabled on a system.
      Disable FIPS setting: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy]

    Best regards,

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    1 person found this answer helpful.
    0 comments No comments

  2. Reza-Ameri 16,851 Reputation points

    SQL Developer edition is compatible with the Windows 11 and I believe there is a issue with the media.
    Did you get it from the official and trusted source?
    Make sure update your Windows and restart your PC and try again.

    0 comments No comments

  3. Erland Sommarskog 104.1K Reputation points MVP

    So you get this error when you select Download Media? I don't know what is going on, but the prime guess is that there is a network issue. It could also be an over-zealous anti-malware product that strikes.

    I wold try a different network channel if possible, and also a different computer.

    0 comments No comments