Specifying a path via Setup project in .NET

I have a windows application written in C# that reads data from XML file. XML file relative path is stored in app.config file and application code adds the relative path it finds in a config file to an application path, so that it looks for XML file in the application directory.

What I want is to allow the user to specify a path to the XML file during installation via setup/deployment project. The file could be either on a share or on the user's hard drive.

I want the user installing the app to have a choice to specify that path or not and if not, then I want application to retrieve it from a config file, but if user specifies the path to the XML file, then use that path.

Can anyone help?
LVL 35
YZlatAsked:
Who is Participating?
 
YZlatAuthor Commented:
Could you give me some examples?
0
 
BuggyCoderCommented:
these urls contains examples only...
Please read them carefully
0
 
YZlatAuthor Commented:
Was not sufficient but pushed me in the right direction. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.