Solved

Specifying a path via Setup project in .NET

Posted on 2012-03-17
4
195 Views
Last Modified: 2012-03-27
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?
0
Comment
Question by:YZlat
  • 2
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37734571
0
 
LVL 35

Author Comment

by:YZlat
ID: 37742371
Could you give me some examples?
0
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37742392
these urls contains examples only...
Please read them carefully
0
 
LVL 35

Author Closing Comment

by:YZlat
ID: 37771132
Was not sufficient but pushed me in the right direction. Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

707 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

20 Experts available now in Live!

Get 1:1 Help Now