If you want to keep your data and software, you need to upgrade your installation to Windows 10 Home, then upgrade Windows 10 Home to Windows 10 Pro, using the generic license key
VK7JG-NPHTM-C97JM-9MPGT-3V66T
Finally, from Windows 10 Professional, navigate to Settings > Update & security > Activation > Change the product key and enter your Windows 7 Pro, 8 Pro or 8.1 Pro license key.