Solved

app information storage

Posted on 2006-07-14
2
217 Views
Last Modified: 2010-04-16
Hello Experts,
                    What 's the most common way of storing application information? That is, I would like to have a place where I could put some key information about the application at install and be able to update it leter on such as options, user settings, paths, information lists of the application level, stuff like that. I have heard some use registry, others .ini files. Could you please reflect a bit on that?

Thanks,
Serge
0
Comment
Question by:Autofreak
2 Comments
 
LVL 10

Accepted Solution

by:
athapa earned 250 total points
ID: 17112812
If the settings don't need to be updated during runtime and only gets updated with new release or so then you can you App.config . This is a xml file from where you can easily retrieve those settings.

You can always use plan xml file to save your settings.

Another alternative would be use xml or binary serialization to store you settings and deserialize and load them when your app starts. R

egistry is also quiet easy to deal with in .Net.

You do need to consider the security settings in the user's machine if you are going to save your settings as a file. Sometimes they may not have rights to modify or create new files in the c:\Program files folder so you may need to save those settings to user profile folder or other location.

AT
0
 

Author Comment

by:Autofreak
ID: 17157858
Thanks Man!

Have a nice weekend
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now