First, back up your machine: That’s photos, documents and music. You probably don’t want to lose all of your stuff.
While your computer is backing up, make sure you’ve got all your product keys. Once you’ve verified you have a key, deauthorize the program. This way you won’t have any trouble re-installing any software on your next computer.