What was the original problem with the laptop when you received it from your friend?
I've ran into similar problems on some laptops that wouldn't boot, and stalled on the installation screen, you say that it passes installation but on boot it get's stuck at 'starting windows', is the new...