Since you get the same error at different time, and on different discs, I'd say that the problem isn't with the discs themselves.
Try having your friend clean out all the temp files in the computer, then do a search in Windows explorer for *battelfield, then *ea then *eagames and/or *ea games and delete whatever is related to Battlefield 2. You might also want to run CCleaner
to clean out the registry (read the instructions on CCleaner and be sure to make backups of your registry before deleting anything!).
Update to the latest video drivers possible and upgrade to Direct X 9.0c.
Also, ensure that the anti virus is turned off as I stated above. This will sometimes keep games from installing.
Now, try to install the game again (and keep your fingers crossed!). Good luck!
War produces veterans, wounded both physically and mentally. They have sacrificed for us.....and it is now our job to help these veterans, as they have already helped us in ways we will never know, in ways that we cannot fathom, and in ways that we take granted every day.