I've created a .net program that runs as a service. The service runs as the Local System Account. I would like to learn about how to use the Windows Registry to store settings for the program.
I've read about how to use the .net classes to read and write values to the registry.
However, I understand that upon installation of the program, my MSI installer will need to create the registry keys where the values will be stored.
How do I determine the appropriate place to create the new registry key?
Update: In this particular case, I the program should always run as the Local System account. However, in the case that it runs as another account I want it to use the same settings. Furthermore, I would like to use a configuration tool to modify the settings which will run as the identity of the logged in user.