Hello
Thank you for your question and reaching out. I can understand you are having issues related to SharePoint installation, There could be many reasons for this problem. But most common problems due to manual installation and having incorrect system variable for the PowerShell path
To resolve this Just uninstall the existing installation from the control panel and re-run the SharePoint prerequisites installer or Auto SP Installer. Reference : https://social.technet.microsoft.com/wiki/contents/articles/52479.appfabric-troubleshooting-installation-failed-because-installer-msi-returned-with-error-code-1603.aspx
---
--If the reply is helpful, please Upvote and Accept as answer-