Pro follows your Microsoft account. On a new PC or after a reinstall, sign in with the same account and restore the purchase.

Subscriptions follow the account, subject to the Store's device rules. Sign in with the same Microsoft account on the second PC and restore.
The classic installer does not use the Microsoft Store.