1

I am developing a Windows service that uses a config.json file to store its configuration. When I developed it without a service, I stored the data in %APPDATA%\companyname\product.

Now I am switching to real Windows service. When is run it as a service, the path points to C:\Windows\system32\config\systemprofile\AppData\Roaming\company\product. But I can't find my file in there. I tested it with the Explorer and a command prompt (as administrator). How can I access my configuration.

Is that the best place to put my configuration file?

William M.
  • 369
  • 1
  • 5
  • 10

1 Answers1

0

I ended up putting my configuration in C:\ProgramData.

William M.
  • 369
  • 1
  • 5
  • 10