As an alternative, I suggest installing Windows 7 from a USB flash drive on your friend's PC. That's much quicker than using the DVD.
That assumes that all that you plan to give your friend is a Windows installation. Most of the setup time on the upgraded machine would be downloading and installing WIndows updates, plus installing and configuring all of the applications. (It's not permitted to do an upgrade-in-place from XP to Windows 7.)