Hi @D. P., Karthik (ADV D AA SGI PS EA-MED DPS),
Thank you for reaching out and welcome to Microsoft Q&A.>
I could not find the root cause why this issue would occur.
Notice that you have setup the SQL Server 2019 Express successfully, this means you already have ODBC 17 Driver for SQL Server installed.
So, when you want to install the SQL Server 2022 Express, it will get confused when the existing driver is not of the same version as in the installation package. The method to resolve the issue is uninstall ODBC driver 17 and retry the SQL installation.
Here is an article that fully describes how to troubleshoot it when he encountered this situation like yours, hope this can help you know more.
if this can be detected before hand.
In addition to what is mentioned above, if you preinstalled SSMS, you could also get the same error message you post.
Please feel free to share your issue here if you have any confused.
Best regards,
Lucy Chen
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
https://docs.microsoft.com/en-us/answers/support/email-notifications