How does upgrade software work?

I’ve never had much experience with those. Say I have Windows XP and I buy Windows Vista (when it comes out). Would I have to reinstall XP and then upgrade to Vista (use both disks) everytime I reformat? That’d be a pain.