I use HKLM\Software\etc\etc to store my basic settings which essentially is the location of my program and it's related database.
The problem I have now is that I have created a Windows Service and need to read those locations. I am unable to read the registry settings as LocalService or LocalSystem which is what the service runs under as HKLM\Software\etc\etc does not of course exist for those user accounts.
Is there a registry Hive that is available to persist that data and is accessible to those services?
It seems I will need to create a text file and store this data somewhere on the file system but before I do, is there any file location that is guaranteed to be the same on everyone's computer. I guess I will need to use a standard environment variable.