I’d purchased the licence and installed in a machine called A. So now I’ve upgraded to a better machine called B. So can I use back the same licence to install UiPath studio in machine B?
Yes, you need to transfer the license there.
Search for regutil how to deactivate - that should get you going. If unsure, contact support.