Save registration code

how can i save the registration code? I know it’s a key stored in the system registry, but where?