When I try to install SharePoint 2010 Foundation on a Windows Server 2012 machine with SQL Server 2012 already installed I get the message "The installation of this package failed" after running installer file as Administrator. The log files in %user%\Appdata\local\temp\2 do not give any clues as to what has gone wrong. If I download Sharepoint Foundation 2013 and run that as Administrator I get the same error.
IE on the Server 2012 machine has protected mode turned off and the server has IIS and AppServer features enabled