Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Specifying a path via Setup project in .NET

Posted on 2012-03-17
4
Medium Priority
?
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 1500 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

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…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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