SQL Server 2025 Express uninstall fails with error 29569 – RestoreSetupParams

Shyam Nikhil 0 Reputation points
2026-12-03T09:59:01.1533333+00:00

I need help completely removing SQL Server 2025 Express from Windows 11 so I can perform a clean reinstall.

I have two SQL Server instances:

SQLEXPRESS (MSSQL17.SQLEXPRESS)

SQLEXPRESS01 (MSSQL17.SQLEXPRESS01)

Both instances are damaged. Their Database Engine services cannot start because startup parameters and required Log and DATA folders are missing.

When uninstalling SQLEXPRESS through SQL Server Setup, the operation fails with:

Error: 0x80077381 (29569) Message: SQL Server Setup failed to restore the instance id.

The failure occurs in the Advanced Analytics MSI custom action RestoreSetupParams.

The Setup summary also says the Database Engine uninstall has already removed feature files and must not be retried.

Repair also fails because the Database Engine feature is not in a supported state for repair.

I need a Microsoft-supported procedure to completely remove both instances and their damaged Setup registrations so I can reinstall SQL Server cleanly.

I have the complete Setup log ZIP available if required.

What is the safest supported recovery procedure?

I checked the Installed SQL Server Features Discovery Report. Neither SQLEXPRESS nor SQLEXPRESS01 appears as INACTIVE; both appear as Configured Yes.

However, the latest SQLEXPRESS uninstall summary explicitly says the Database Engine uninstall cannot be tried again and recommends contacting Microsoft Customer Support.

Should I run a partial-installation uninstall command for either instance despite this warning, or is there a different supported recovery procedure for error 29569 in this situation?

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Newest
  1. Вячеслав Краковский 0 Reputation points
    2026-12-04T12:22:33.5266667+00:00

    Erland already gave good references, so let me add the practical angle. I've cleaned up half-removed SQL Express installs on dev machines before, and the important detail in your log is where it fails: not in the Database Engine, but in the Advanced Analytics MSI (the RestoreSetupParams custom action). That package is trying to read the instance id mapping that the engine uninstall has already removed, so Setup keeps tripping over it.

    What I would try, in this order. Make a restore point and export the registry first.

    1. Open the latest Detail.txt under %ProgramFiles%\Microsoft SQL Server\170\Setup Bootstrap\Log<timestamp> and search for RestoreSetupParams. Next to it you'll see which MSI fails and its product code.
    2. Remove only that package with Windows Installer, with a verbose log: msiexec /x {PRODUCT-CODE} /l*v C:\temp\aa_uninstall.log
    3. Run the SQL Server uninstall again for SQLEXPRESS and select only the features that are still listed. Then do the same for SQLEXPRESS01.

    If step 2 fails on the same custom action, I'd stop there. At that point manual registry surgery is riskier than a support case with the log ZIP you already have.

    Where the logs live and how to read them: https://learn.microsoft.com/en-us/sql/database-engine/install-windows/view-and-read-sql-server-setup-log-files The uninstall procedure: https://learn.microsoft.com/en-us/sql/sql-server/install/uninstall-an-existing-instance-of-sql-server-setup

    If you paste the lines around RestoreSetupParams from Detail.txt, I'm happy to look at them.

    Drafted with AI assistance and checked against the documentation.


    Vyacheslav Krakovsky, (irrelevant content removed)

    Was this answer helpful?

    0 comments No comments

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.