Additional SQL Server features and topics not covered by specific categories
The error dialog shows that the SQL Server setup is failing while trying to install or repair the dependency Microsoft Visual C++ 2022 x64 Minimum Runtime from a cached MSI path that is no longer available. SQL Server then cannot complete installation.
To resolve this on Windows 11 and then rerun SQL Server setup:
- Uninstall the problematic Visual C++ runtime
- Open Control Panel → Programs → Programs and Features.
- Look for entries like Microsoft Visual C++ 2022 X64 Minimum Runtime (and any obviously broken/duplicate entries for that version).
- Uninstall them. If prompted, restart Windows.
- Install the latest Visual C++ Redistributable manually
- Download and install the latest supported Visual C++ Redistributable for x64 from the Microsoft site (both x86 and x64 if desired).
- After installation, restart Windows again.
- Run SQL Server setup as administrator and from a local file
- Copy the SQL Server installer (Developer or Express) to a local folder (for example,
C:\Temp\SQLSetup). - Right‑click the setup executable and choose Run as administrator.
- Prefer the offline installer for Express/Developer rather than the basic web installer to avoid network/component download issues.
- Copy the SQL Server installer (Developer or Express) to a local folder (for example,
- If installation still fails
- Check the SQL Server setup logs and error log for details:
- For a default instance of SQL Server 2019, the error log is typically at:
C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\LOG\ERRORLOG. - For SQL Server 2022 Express default instance, it is typically at:
C:\Program Files\Microsoft SQL Server\MSSQL16.SQLEXPRESS\MSSQL\LOG\ERRORLOG.
- For a default instance of SQL Server 2019, the error log is typically at:
- If the log shows the message “Wait on the Database Engine recovery handle failed” and mentions “256 misaligned reads”, this indicates the known Windows 11 disk sector‑size issue. In that case, follow the workarounds in the Microsoft article on troubleshooting SQL Server errors related to disk sector size greater than 4 KB.
- Check the SQL Server setup logs and error log for details:
After these steps, rerun the SQL Server installer. If it still fails and the error log does not mention misaligned reads, review the ERRORLOG for the specific failure and address that cause.
References:
- SQL Server Management Studio (SSMS) setup failed or requires restarting the machine
- SQL Server installation errors
- Troubleshoot SQL Server errors related to system disk sector size greater than 4 KB
- Install, configure, or uninstall SQL Server on Windows from the command prompt
- i cannot able to install SQL express edition, it is showing error. - Microsoft Q&A
- Unable to install SQL Express - Microsoft Q&A
- How to install my SQL Server Express 2025 - Microsoft Q&A
- Unable to install SQL server (Setup.exe) Exit code:-2061893606 - Microsoft Q&A
- how fix the error that occurs when I try to install SQL Server 2019 - Microsoft Q&A