While installing Windows XP, if it tells "Setup did not find any hard disk drives installed in your computer" then this error happens because your computer has a storage controller that isn't supported natively in XP, usually a SATA controller. Especially in HP laptops without free DOS you cannot install other operating systems. Solving this problem is very simple. Just follow the steps below. This technique requires no software or downloads.
Step 1: Reboot your computer. While startup, before the Operating system starts, press the F10 key continuously until it shows the BIOS menu as shown below. If you have any start up password or administrator password then enter it. In the BIOS menu select the System Configuration tab.
Step 2: Now you can see the SATA Native Support option. It will be in the Enable Mode as default.
Step 3: Select the SATA Native Support option and press enter. You will see the enable or disable option.
Step 4: Now you select the disable option.
Step 5: After completing the entire task given above press F10. It will show a quit menu. Select yes and it will automatically reboot the system.
Now your computer is ready for the setup. Now you put your Windows CD/DVD in the Disk drive. it is important that you enable the Boot from ROM option and it is first in the boot order.
NB: This technique may work for other brands than HP also if the BIOS support the disable SATA native support option. This technique will not only allow you to install XP but also any other operating system of your need in any HP laptop.
If this solution does not work for you or you don't have the SATA Native disable option in your BIOS you have to try another technique using nLite. I have given this solution here:
Integrate your own drivers or components in the Windows installation CD or DVD using nLite