Sharepoint Foundation 2013 install for EP

Greetings,

OS: Windows Server 2012 R2 Standard

AX version: AX 2012 R3 CU10

Scenario:

Need to install Enterprise Portal.

As a pre-requisite for EP. Want to install SharePoint Foundation 2013.

Pre-requisite installed successfully.

When I start Sharepoint Foundation 2013 install. it returns error saying .net framework 4.5 not installed. But when I checked with some tool the frameworks installed…it shows 4.6.1.

As per one forume, it says…we need to Uninstall 4.6.1 in order to proceed with SP Foundation 2013 setup.

Concern is, I am not able to Uninstall the .Net FrameWork 4.6.1.

Did anyone experienced such issue. Pls. advise.