A Repair Install is not foolproof and should not be considered the cure-all fix for non-boot situations.
The below procedure applies only if you can still boot into Windows.
To prevent loss of data and/or program settings, perform the following before the Repair Install.
Manually delete the Undo_guimode.txt file from the Windows\System32 folder before you perform any of the actions that are listed in the "Symptoms" section of this article. To do this in Windows XP, type the following command at a command prompt:
del /a /f %windir%\system32\undo_guimode.txt
1.From the Start menu, click Run.
2.In the Run dialog box, in the Open text box, type: cmd. Click OK.
3.Delete the undo_guimode.txt file. In the C:\Windows\System32\cmd.exe dialog box, type: del /a /f c:\windows\system32\undo_guimode.txt. Press the ENTER key.
Very important!!
If you still have the ability to access the Windows XP installation, backup all important files not restorable from other sources before attempting any recovery console or other trouble shooting attempts.
Possible Fix by reconfiguring boot.ini using Recovery Console.
?1.Boot with XP CD or 6 floppy boot disk set.
?2. Press R to load the Recovery Console.?
?3. Type bootcfg.?
?4. This should fix any boot.ini errors causing setup not to see the? XP OS
????? install.?
?5. Try the repair install.
"Reboot, this time taking the immediate R option and if the CD letter is say K: give these commands
copy K:\i386\ntldr C:\
copy K:\i386\ntdetect.com C:\
(two other files needed - just in case)
1. Type: attrib -h -r -s C:\boot.ini del C:\boot.ini
2. Type: BootCfg /Rebuild
which will get rid of any damaged boot.ini, search the disk for systems and make a new one.
Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.