hi my laptop is originally vista, it was reformatted to xp by a friend and i want to return it to vista.

problem is when i try to install vista after booting the dvd, cmd appears and i can't use my keyboard to type anything (im supposed to dype drive>setup.exe, right?). i figured what if i reformat to xp then just do an upgrade, but after booting the xp when i try to reformat, it says there are no hard drives installed or not powered on. well obviously there is a hdd coz i can still bootup xp.

is this about the configuration my friend to to downgrade to xp? please help. thanks