Installing SharePoint 2019 on a Development Server.

The cause of this error is that i installed Windows Server AppFabric manually (click the executable) instead of using the SharePoint 2019 Pre-Requisites installer.
Solution:
1.) Uninstall program from Control Panel > Programs.
2.) Reboot the server.
3.) Open Command Prompt as an Administrator.
4.) Run the following command to install the App Fabric the correct way.
Start-Process "C:\SharePoint2019\PrerequisiteInstaller.exe" -ArgumentList /AppFabric:`"C:\SharePoint2019\PrerequisiteInstallerFiles\WindowsServerAppFabricSetup_x64.exe`" `




5.) Restart the server.