Share via

How to fix SQL Server 2022 Express failed installation

Mike Roberson 0 Reputation points
2025-11-19T23:46:22.5666667+00:00

My installation attempt has failed several times using the wizard.

I have verified the pre-install requirements including port 1433 is enabled, 4.7.2 .Net is installed, and the AzureAttest dll is reported as 'successful'.

I see the following failure entry in the install summary log:

<The failed component is reported to be "SQL Server Database Engine Services Shared Features", the error code is reported to be "1722".>

I see the following failure entry in the installation detail log:

<Error result: -2147467259, Result facility code: 0, Result error code: 16389>

The exit message at the completion of the install wizard reads as follows:

<Exit code (Decimal): -2068052294 Error Description: There is a problem with the Windows Installer Package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor>

What is the fix for this issue?

SQL Server Database Engine
0 comments No comments

Answer recommended by moderator

  1. Akhil Gajavelly 1,820 Reputation points Microsoft External Staff Moderator
    2026-01-07T10:04:15.2566667+00:00

    Hi @Mike Roberson ,

    This error (1722 / Windows Installer package failed) is not related to ports or .NET. It happens due to a corrupted Windows Installer state from a failed SQL setup.

    Fix that worked:

    1. Uninstall any existing SQL Server entries.
    2. Reboot and delete these folders (if present):
      C:\Program Files\Microsoft SQL Server
      C:\Program Files (x86)\Microsoft SQL Server
      C:\ProgramData\Microsoft\SQL Server
    3. Open Command Prompt as Admin and run:
      msiexec /unregister
      msiexec /regserver
    4. Reboot.
    5. Install SQL Server 2022 Express using the offline ISO (run setup as Admin, Basic install).

    After this, SQL Server installed successfully.

    Thanks,
    Akhil.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-19T23:46:42.19+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To address the failed installation of SQL Server 2022 Express, particularly with the error codes you provided, you can follow these troubleshooting steps:

    1. Check Installation Media: Ensure that the installation media is not corrupted. If you downloaded the installation files, try downloading them again from the official source.
    2. Run as Administrator: Make sure to run the SQL Server setup as an administrator. Right-click on the setup executable and select "Run as administrator."
    3. Windows Installer Service: Verify that the Windows Installer service is running. You can do this by typing services.msc in the Run dialog (Win + R) and checking the status of the Windows Installer service.
    4. Check Logs for More Details: Review the installation logs for additional error details. The logs are usually located in the %programfiles%\Microsoft SQL Server\<version>\Setup Bootstrap\Log directory. Look for Summary.txt and Detail.txt files to find more specific error messages that can guide you in resolving the issue.
    5. Repair Windows Installer: If you suspect an issue with the Windows Installer, you can try repairing it. This can be done through the Control Panel under "Programs and Features" by selecting Windows Installer and choosing the repair option if available.
    6. Check for Conflicting Software: Ensure that no other installations or updates are running that might conflict with the SQL Server installation. Temporarily disable any antivirus or firewall software to see if it resolves the issue.
    7. Use Command Line Installation: If the wizard continues to fail, consider using the command line to install SQL Server. This can sometimes bypass issues encountered in the GUI.
      • Example command: setup.exe /q /ACTION=Install /FEATURES=SQL /INSTANCENAME=<YourInstanceName>
    8. Consult Microsoft Documentation: For specific error codes like 1722 or -2068052294, consult the Microsoft documentation for SQL Server installation errors, as they often provide targeted resolutions for known issues.

    If these steps do not resolve the issue, you may need to consult with Microsoft support or community forums for further assistance.


    References:

Your answer

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