When installing and upgrading to Windows 7 from previous version of operating system such as Windows XP and Windows Vista with an upgrade license, media (either Windows 7 ISO image or DVD disc) and product key, the following error message may be displayed when entering the serial key during setup: The product key is not valid. Please retype the product key.