Multiple app settings

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

My app has settings that are stored in the app configuration file. Is there
a way to select a different set of app settings for different pcs, either
during setup or when app is run for the first time?

Thanks

Regards
 
John,

there are two kinds of app settings, and two different locations where
those settings get stored. First there are application settings, which
are, by default, read only and stored in the config file where
application is installed. Then there are user-scoped settings, which
gets saved in current user's document folder - those can be changed by
the application in runtime. If you can set up your default settings
when application is first run, you can use user-scoped settings to
save them.

You can also create a custom settings provider to store those settings
in any source you need, for example, one common scenario is that
user's settings are stored in a database so users can access them from
any pc where that application is run.

To better understand your scenario, could you please explain what kind
of settings would you like to be applied "per pc" instead "per user"?

Andrej
 
Hi Andrej

Many thanks.My app has separate settings for a laptop which can be
disconnected at times and for desktop that will be always connected. Certain
settings and paths are different based on the pc type the app is being
installed on. If I can choose the set of settings during setup or at first
run that would be great.

Thanks

Regards
 
Back
Top