Today when installing a virtual development environment for Sharepoint 2013 I got

"SharePoint Server 2013 encountered an error during setup" 

error. When I checked the details of the error in error log file  

I found an entry

"Failed to install the product: c:\global\oserver.msi error code: 1603(0x643) error when istalling sharepoint 2013"

I tried many different things but the solution was very interesting:) Virtual machine was using just one CPU. After increasing the processor on virtual machine from 1 to 4 magic happened and installation finished successfully.