Only Vista can be in-place Upgraded to Windows 7, and it needs to be the correct version to Upgrade.
Within Windows 7 you can use Anytime Upgrade to change to a higher version, which works with a retail Product Key as well.
Plus there is a workaround to change between versions within Windows 7 if you have the desired version Product Key.
Anything other than that has to be clean installed.