Solved

Specifying a path via Setup project in .NET

Posted on 2012-03-17
4
196 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

11 Experts available now in Live!

Get 1:1 Help Now