Additional SQL Server features and topics not covered by specific categories
That message is consistent with the web installer being outdated or failing during finalization. A practical fix is to stop using the small online installer and install from fresh offline media instead.
- Download fresh SQL Server 2022 Express installation media again from the original Microsoft source.
- Prefer offline media instead of the web installer. The accepted offline ISO link for SQL Server 2022 Express is:
https://go.microsoft.com/fwlink/?LinkID=2213259&clcid=0x409 - Save the media to a local drive and run Setup from that local drive. SQL Server setup can fail when launched remotely or from unsuitable media locations.
- Before retrying, restart Windows. If installing or upgrading SQL Server 2022 on newer Windows Server versions, pending restarts can block setup.
- If previous attempts left partial setup files, review the setup logs under:
C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log\ - If setup still fails with file, cabinet, bad image, or missing component errors, treat the media as corrupted and download it again.
- If the installer reports SQL Server is already installed, install only the missing feature needed, such as LocalDB. LocalDB is included with Express media, and
SqlLocalDB.msiis available in the installation media under:<installation_media_root>\<LCID>_ENU_LP\x64\Setup\x64
If the failure changes to a Database Engine startup error such as Wait on the Database Engine recovery handle failed, check the SQL Server error log at:
C:\Program Files\Microsoft SQL Server\MSSQL16.SQLEXPRESS\MSSQL\LOG\ERRORLOG
That error is generic and the error log is needed to identify the actual cause.
References: