Jump to content
  • Advertisement
Sign in to follow this  
stormwarestudios

Service config files

This topic is 3717 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I've written a program at work which I'm turning into a Windows service. The program relies on a configuration file. My question is, what is the customary storage location for the configuration file for a service? I am assuming at this point that the cleanest place is in C:\Documents and Settings\All Users\Application Data\<my app>\, but I would like to be sure. I guess the config file could also go in C:\Program Files\Common Files\<my app>\? I would like to avoid touching the registry if possible. Cheers, - DH

Share this post


Link to post
Share on other sites
Advertisement
Is this an Application Configuration file or just a config file (like myConfig.config as opposed to app.config)? If it's a normal config then yeah, stick in the App Data path - that's what I do.

James

Share this post


Link to post
Share on other sites
Hang on, if it's the App.config file then shouldn't you just keep that in the same directory as your Service.exe?

James

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!