It's often error when You try to install some versions that are "not fully supported", example on 2012 R2 or Windows 8. But this could be solved
1) Download all prerequisites, for automatization You can use ps script like from here(click Properties-> “Unblock” on ps1 file before use):
https://gallery.technet.microsoft.com/office/DownloadInstall-SharePoint-e6df9eb8
2) Extract all files from sharepoint ISO to some folder, example "C:\SharepointInstall\", and put download prereqs to "C:\SharepointInstall\prerequisiteinstallerfiles\" (FilterPack file should be near)
3) Then put there cmd file, by example "mysetup.cmd", in root "C:\SharepointInstall\", and edit it like
prerequisiteinstaller.exe
/SQLNCLi:prerequisiteinstallerfiles\sqlncli.msi
/PowerShell:prerequisiteinstallerfiles\Windows6.1-KB2506143-x64.msu
/NETFX:prerequisiteinstallerfiles\dotNetFx45_Full_x86_x64.exe
/IDFX:prerequisiteinstallerfiles\Windows6.1-KB974405-x64.msu
/Sync:prerequisiteinstallerfiles\Synchronization.msi
/AppFabric:prerequisiteinstallerfiles\WindowsServerAppFabricSetup_x64.exe
/IDFX11:prerequisiteinstallerfiles\MicrosoftIdentityExtensions-64.msi
/MSIPCClient:prerequisiteinstallerfiles\setup_msipc_x64.msi
/WCFDataServices:prerequisiteinstallerfiles\WcfDataServices.exe /quiet
/KB2671763:prerequisiteinstallerfiles\AppFabric1.1-RTM-KB2671763-x64-ENU.exe
Run it as administrator and install