^ you can remove the graphics that way, yes, but since the problem was occuring during setup as well, before drivers are loaded, I would suggest that this is not the problem (don't quote me tho').
Normal problems for setup fail that can be fixed are in the BIOS, and may well be related since the battery died (And maybe reset everything).
BIOS:
Make sure VIRUS WARNING is OFF.
Make sure A20 GATE is ON.
These two give Windows issues on install.
How do you know that your power is ok? 300W is standard, but if you have too many devices in there, or indeed a faulty power supply, the power regulation may change, and if it drops the voltage across the board from a -5 to say -1 then the system may restart or cause a multitude of problems.
Of course, I can't be certain of any diagnostic in THIS problem unfortunately...