'MySQL giving error of .NET framework 4.0.30319

Currently I have windows 10 and .NET framework 4.8 in my laptop, when I am trying to install MySQL 8.0.23 with 4.8 .NET framework it gives me error that I mentioned below:

MySQLInstallerLauncher.exe - .NET Framework Initialization Error To run this application, you first must install one of the following version of .NET Framework :v4.0.30319.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source