Ensure your Windows setup is connected to a Microsoft account, then you can re-activate it using an OEM key. My BF used the original digital license that came with his ASUS pre-built unit to set up his new custom system. He upgraded from a 4770 to a Ryzen 7700X.