Don't use the registry.
Beginning in Vista, access has become more and more restricted because it was abused and became badly bloated. Writing to the registry needs elevated permissions - which means UAE - which is a poor choice for anything new.
Have a look here: Where should I store my data?
] - it suggests some safer places to store information.