Dear All,
While installing sharepoint 2013 & 2016 I have been facing annoying error which is below screenshot

We all knew that we it shows frustrated repeated error
Windows Server AppFabric is not correctly configured.You Should uninstall Windows Server Appfabric and reinstall it using The SharePoint Products Preparation Tool
I tried below 2 ways which helped me to solve the issue
Solution 1 :
$SharePoint2013Path = "D:\Appl\SP"
Start-Process "$SharePoint2013Path\PrerequisiteInstaller.exe" /KB2671763:$SharePoint2013Path\PrerequisiteInstallerFiles\AppFabric1.1-RTM-KB2671763-x64-ENU.exe
Start-Process "$SharePoint2013Path\PrerequisiteInstaller.exe" /AppFabric:$SharePoint2013Path\PrerequisiteInstallerFiles\WindowsServerAppFabricSetup_x64.exeStart-Process "$SharePoint2013Path\PrerequisiteInstaller.exe" /KB2671763:$SharePoint2013Path\PrerequisiteInstallerFiles\AppFabric1.1-RTM-KB2671763-x64-ENU.exe
Solution 2:
- Move WindowsServerAppFabricSetup_x64.exe to drive C:/
- Type the following command line in PowerShell.
\WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac
or
.\WindowsServerAppFabricSetup_x64.exe /i /gac
.\WindowsServerAppFabricSetup_x64.exe /i /gac