Writing software for a client, and one of their requirements was that the user be able to specify where the application database is stored, be it on the local network or in an online repository.

I can let them choose where to put it, but how do I store that information in the application?

I guess I don't understand how to persist changes in an application that is already deployed. This is my first piece of software, so I've never been through the deployment process. Written in C# for Windows.


1 Answer 1


For something like a target path, just use Application.Settings to persist it.

  • Thank you! I don't have enough rep to vote yet, appreciate the answer.
    – user996413
    Commented May 15, 2014 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.