2 concepts:
Reinstall, and reactivate.
You will probably need to reinstall.
If so, you will need to reactivate.
If you don't need to reinstall, you will probably need to reactivate.
New hardware, reinstall is recommended if not required.
Activation is either totally painless (online), or mostly painless (phone robot).