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

Anurag Singh 1 Reputation point
2022-04-03T16:10:54.343+00:00

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

189541-b91ae8b0-a1a2-4c91-a0a2-0c99b4b914e6.jpg

Windows for business | Windows Client for IT Pros | User experience | Other
SQL Server | Other
{count} votes

3 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,661 Reputation points
    2022-04-04T03:31:56.517+00:00

    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.
    189489-image.png
    If you can't see it clearly, you can also view the Path by accessing the registry.
    189546-image.png

    • 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]
      “Enabled”=dword:00000000

    Best regards,
    Seeya


    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 17,341 Reputation points Volunteer Moderator
    2022-04-03T17:45:35.77+00:00

    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 122K Reputation points MVP Volunteer Moderator
    2022-04-03T18:31:28.263+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.