SP 2013 installation error due to .net Framework 4.5 required in Windows 2012 R2

Uninstall KB Article 3151864 (for .net framework 4.6.2 if its installed) or KB 3102467 (for .net framework 4.6.1) to proceed further  in Windows Server 2012

This will resolve the issue ” This Product requires .net framework 4.5 ”