Hi @Sabith Saqlain
You need to confirm that you downloaded the SQL Server 2022 media from a trusted source and that the file is not damaged.
You can look at the prerequisites for SQL Server 2022.
https://learn.microsoft.com/en-us/sql/sql-server/install/hardware-and-software-requirements-for-installing-sql-server-2022?view=sql-server-ver16
Have you tried this:
- Uninstall all the SQL instances one by one. Goto--control panel - uninstall a program - Microsoft SQL server (64 bit) - select remove option, select the particular instance, and uninstall
- Repeat the same process till you uninstall all instances. Goto C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER (MSSQLSERVER indicates instances). Should not have any instances like this ex: MSSQL15.MSSQLSERVER.
- Restart the computer and run as administrator choose basic installation process.
Best regards,
Percy Tang