|"It goes to a black screen and says Set up is detecting your hardware configuration it doesn't go to the part where it says press any key to boot from the cd"|
If there is no operating system detected on your hard drive by the bios, and if the mboard's bios Setup settings are already set so the computer will boot from a bootable CD, and if there is a bootable Windows CD in a drive, you don't get the line on the screen while booting "press any key to boot from the cd" or similar - the bios automatically boots from the Windows CD.
However, if the CD doesn't load the initial files needed to run Setup and when you run Setup find the hard drive normally, or if Setup partially runs but does not complete, you have some other problem.
If the hard drive is a SATA hard drive, the XP CD has no built in support for recognizing SATA drive controllers. By default, the initial files will load from the Windows CD, then you see a screen where you can choose to run Setup. If you choose that, Setup will NOT find the SATA hard drive, unless......
- the bios Setup has the SATA drive controller in an IDE compatible mode, a.k.a ATA, EIDE, Compatibility, PATA mode, etc. In that case Setup detects the SATA drive as an IDE compatible drive and Setup finds the SATA drive fine.
E.g. Sometimes the bios has the drive controller set to a SATA mode by default - in that case, find a setting in the bios where it's set to SATA or AHCI - change that to some sort of IDE compatible mode, Save bios settings, then boot from the Windows CD.
- or - if the the bios Setup has the SATA drive controller in SATA mode, a.k.a, AHCI mode, or RAID SATA or AHCI mode, then
near the beginning of loading files from the CD, you see a line "Press F6 to load ....." - Press F6 while that line is on the screen, then later while loading the intial files from the CD, you will be prompted to provide drivers. At that point you must insert a floppy disk into a connected legacy floppy drive, the floppy disk must have the proper drivers for your SATA controller already on it. When Setup gets to the point where it looks for hard drives, it will then find all SATA hard drives.
If you don't have a legacy floppy drive connected (a regular internal floppy drive, it's data cable connected to a header on the mboard) that presents a problem, because XP's Setup will NOT look for the drivers on a CD or DVD, or on another hard drive or hard drive partition, or a USB connected flash drive or external hard drive, and it can only recognize a small number of models of USB connected floppy drives, mostly models that were available way back when XP was first released, circa 2001, that are no longer being made.
It's much easier to set the SATA controller in the bios to an IDE compatible mode, if you can (you usually can).
- or, if the the bios Setup has the SATA drive controller in SATA mode, a.k.a, AHCI mode, or RAID SATA or AHCI mode, then
you could make yourself a "slipstreamed" CD, preferably a CD-R, that has the contents of your Windows CD with the proper SATA controller drivers for your mboard integrated into it. If you Windows CD does not have SP3 updates integrated into it, then you might as well integrate the SP# updates into the contents of your CD while you're doing that.
Then you use the slipstreamed" Cd rather than your original CD to boot the computer with and install Windows
Your laser lens may be "dirty".
Try cleaning the laser lens on the optical drive you have the Windows CD in.
If you have a laptop, it's usually easy to clean the laser lens when the tray is ejected and there is no disk on the tray.
If you have a desktop computer, use a laser lens cleaning CD. If you don't have one, most places that sell CDs or DVDs have them, or even some "dollar" stores have them for a buck or two.
If you have more than one optical drive, you could try booting from the CD when it's in another drive.
However, some bioses will only boot from one optical drive - in that case, you need to find the list of optical drives in the bios, and make the first one in the list the drive you want to boot the CD from.
If Setup gets through the first stage, you see "Setup will restart the computer in xx seconds " or similar, then the computer reboots and Setup does NOT get all the way through the second stage after you see "Setup is detecting hardware" or similar - typically the time remaining stalls for a long time at the same figure, then the computer black screens and starts the second stage of Setup all over again, in an endless loop, then Setup is having a problem detecting some hardware properly. In that case, for any computer, unplug everything plugged externally into the computer that is not essential for running Setup - e.g. a printer. If you have a desktop computer, remove the AC power to the case, make sure all cards and ram modules are all the way down in their slots, then try booting from the CD again. If you have a laptop, remove the AC adapter and the main battery, and re-seat your ram, then try booting from the CD again.
If you still get the endless loop during the second stage of Setup, if you have a desktop computer, remove the AC power to the case, remove all cards in slots that are not essential to running Setup, then try booting from the CD again. Them install the cards one by one after Setup has completed.