Don't.
You can pretty much only access the registry for writing in Admin mode - which means your app will need elevation, which invokes the UAE - and this will only get harder to do in future versions of the OS.
Instead, consider writing your own file:
Where should I store my data?[
^] should help.