How to fix "Unable to install SQL Server (setup.exe) Exit Code (Decimal): -2064908287"

Finid Vu 20 Reputation points
2023-12-13T03:31:02.87+00:00

I have a problem while installing SQL Server 2022. The error said: "Unable to install SQL Server (setup.exe) Exit Code (Decimal): -2064908287". Please help me.Screenshot 2023-12-13 102725

SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 121.8K Reputation points MVP Volunteer Moderator
    2023-12-14T20:31:58.9366667+00:00

    I see an exception for

    PerfLib 2.0 counter removal failed with exit code 2. Command line: C:\WINDOWS\system32\unlodctr.exe /m:hkengperfctr.xml from directory C:\Program Files\Microsoft SQL Server\160\Shared.

    But it seems that at this point Setup thinks this is benign and jogs on, performing all the steps related to the installation. But then at the end it still thinks that it failed. Maybe you should check SQL Server Configuration Manager to see if the service is running, and start if it does not. Who knows, maybe it works after all.


2 additional answers

Sort by: Most helpful
  1. LiHongMSFT-4306 31,571 Reputation points
    2023-12-13T05:34:10.1466667+00:00

    Hi @Finid Vu

    There is not enough information to help you. Could you please post the error logs.

    The location by default is: C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log

    There is a summary.txt file and many subfolders created every time the Installation wizard is started. In those subfolders, we can find a Detail.txt file.

    View and Read SQL Server Setup Log Files - SQL Server | Microsoft Learn

    When installing SQL server on Windows 11 and Windows Server 2022, there is a known issue related to system disk sector size greater than 4 KB. If you find error like this: There have been 256 misaligned log IOs which required falling back to synchronous IO.

    Please troubleshoot follow by this doc: Troubleshoot errors related to system disk sector size greater than 4 KB.

    Best regards,

    Cosmog Hong


    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.


  2. LiHongMSFT-4306 31,571 Reputation points
    2023-12-14T03:18:43.6633333+00:00

    Hi @Finid Vu

    Unfortunately, I have not found what to cause this installation to fail. But you can look at the prerequisites for SQL Server 2022. SQL Server 2022: Hardware and software requirements
    If all conditions are met, you can try to uninstall and reinstall.
    Here are the steps to uninstall cleanly.

    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
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
    6. Reboot the machine
      In addition, please use an administrator account to reinstall SQL Server on your computer (Right click->run as administrator).

    Best regards,
    Cosmog Hong


    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.


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.