Magic Wand... Well, seriously Microsoft needs to shed some light over it. Since Windows 8 onward, the keys are embedded in UEFI. So for OEM Windows 7, I think once upgrade then use third party tool to keep Activation file save and use Clean Install and then place old files.
Or You install...