Additional SQL Server features and topics not covered by specific categories
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.
- 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.
- Remove only that package with Windows Installer, with a verbose log:
msiexec /x {PRODUCT-CODE} /l*v C:\temp\aa_uninstall.log - 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)