Memory, cd or hard disk problem. I had an old windows cd, which stopped at certain areas during installation, I've also had memory which has caused the bsod during installation. It could also be failing to write to hard disk
I would try taking everything uneccessary out during installation, and try using only 1 stick of ram if you were using 2. It may be ram problems but it doesnt necessarily mean both are bad