Sign in to follow this  

Service config files

This topic is 3502 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
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

This topic is 3502 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this