Upgrading from Windows 7 to Windows 10 on the same machine

How can I most smoothly upgrade from Windows 7 to Windows 10 on the same machine keeping all the current Studio  (2017 and 2019) and legacy Trados licenses? Any tips?