1

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.

gnat
  • 21,442
  • 29
  • 112
  • 288
user996413
  • 11
  • 1
  • info about database location is to be stored in [Configuration file that can be modified by user in C#](http://programmers.stackexchange.com/questions/191419/configuration-file-that-can-be-modified-by-user-in-c "see possibly duplicate question") – gnat May 15 '14 at 18:35

1 Answers1

3

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

Robert Harvey
  • 198,589
  • 55
  • 464
  • 673