SQL Server 2022 installation error -- Exit code (Decimal): -2147467259

Edin Limance 0 Reputation points
2024-11-19T13:06:55.3+00:00

Hello,

So basically, I have tried installing SQL server 2022 mulitple times, getting same error.

I did a lot of digging on the net but I simply can't find solution myself.

I have read that reason is in detail and summary file so I'm gonna attach them both. I hope you can help me fix the problem.

Summary_DESKTOP-NJGACCM_20241119_140110.txt

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,151 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 113.6K Reputation points MVP
    2024-11-19T22:27:45.9066667+00:00

    The setup fails because it cannot find the file C:\Program Files\Microsoft SQL Server\160\Shared\RsFxInstall\RsFx0700.inf. Why this file would be missing I don't know.

    However, my belief is that this is an error that occurs mainly in the situation when a user tried to install SQL Server and it failed with some error. The user might have tried some random cleanup and made renewed attempts. Because the cleanup was incomplete, Setup now fails with another error than it did originally. I see that you have a couple of instances, so it seems that you may have done this.

    Here is a link to an article that can help you to clean up properly: https://www.sql-easy.com/learn/how-to-uninstall-sql-server/. I have not tried it myself, but I learnt about it from a user who was in a similar situation as yours, and who was able to install SQL Server successfully after following the article.

    If you are on Windows 11, be sure to read the article Troubleshoot errors related to system disk sector size greater than 4 KB before you try again. It discusses a known issue where Windows 11 reports a disk-sector size that SQL Server chokes on. This could be the cause for your original failure. Check out this article, and if needed apply the workarounds it proposes.

    If you make a new attempt after cleanup, and it still fails, you find log files in C:\Program Files\Microsoft SQL Server\nnn\Setup Bootstrap\Log with one folder per attempt. (nnn is a three-digit number that depends on the version of SQL Server you are trying to install). The files of most interest are summary.txt, detail.txt and any file with ERRORLOG in the name. (The latter only appears if Setup came as far as trying to start SQL Server). Feel free to attach these to the thread here.

    0 comments No comments

  2. ZoeHui-MSFT 38,621 Reputation points
    2024-11-20T01:28:43.1066667+00:00

    Hi @Edin Limance

    There are three instances on your machine now, it is highly suggested to uninstall these instances clearly first and then install a new one.

    Please follow the below steps to remove all components of previous installed SQL Server completely:

    1. Remove all SQL Server components from 'Programs and Features'
    2. Backup the registry
    3. Delete the following keys in regedit:

    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server

    --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer

    1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    3. Reboot the machine

    In addition, please use an administrator account to reinstall SQL Server on your computer (Right click->run as administrator).

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.