This happens if I try to uninstall it or even repair it. The setup stops working at the end. Any help would be much appreciated.
Download Microsoft Windows Installer Cleanup Utility from, for example, MajorGeeks.com
Run it, find all records Microsoft SQL Server... and remove it. Clear registry from trash records, for example, by CCleaner. Then install SQL Server again and remove it from add/remove in control panel.