473,320 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

.INF or .INI Files Linked To An Application

Building an application that will use an external data file to get
configuration info for the app when it loads. I have a few questions. When I
deploy the app where does the file that is being linked go; in the Bin folder,
or somewhere else? In order to link the file to the app, I need to select it
during the deployment process (I think). How does the app know where to find
the data file once it is deployed? Is there a way for the app to retrieve its
own installed path? Is this info put in the registry? I've read that the new
method is to try and avoid using the registry for this purpose, but then how
will the app find its associated external files? Normally, on a computer with
1 hard drive and 1 partition, the app would be installed in the C:\Program
Files\My Application directory. What happens when someone installs it on the
H drive, subnested 3 directories down? Again, how does the app know where to
find its external files?

If someone could give me a good overview of the subject or a link, or book
that explains this in detail it would be helpful. I have many books on VB.NET,
but none even mention this subject. Maybe too in depth of a subject for the
intermediate programmer?

Thanks for the time and energy in advance.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200511/1
Nov 27 '05 #1
2 1254
Hi,

VB.Net will look in the directory the exe is in for the file if
there is no specific path.

How to get application path
http://www.vb-tips.com/default.aspx?...c-dfa89d0d9842

XML is the prefered format to save a configuration file.
http://msdn.microsoft.com/library/de...et02122002.asp

Ken
-----------------
"aiki727 via DotNetMonster.com" <u15715@uwe> wrote in message
news:57fe625063a60@uwe...
Building an application that will use an external data file to get
configuration info for the app when it loads. I have a few questions. When
I
deploy the app where does the file that is being linked go; in the Bin
folder,
or somewhere else? In order to link the file to the app, I need to select
it
during the deployment process (I think). How does the app know where to
find
the data file once it is deployed? Is there a way for the app to retrieve
its
own installed path? Is this info put in the registry? I've read that the
new
method is to try and avoid using the registry for this purpose, but then
how
will the app find its associated external files? Normally, on a computer
with
1 hard drive and 1 partition, the app would be installed in the C:\Program
Files\My Application directory. What happens when someone installs it on
the
H drive, subnested 3 directories down? Again, how does the app know where
to
find its external files?

If someone could give me a good overview of the subject or a link, or book
that explains this in detail it would be helpful. I have many books on
VB.NET,
but none even mention this subject. Maybe too in depth of a subject for
the
intermediate programmer?

Thanks for the time and energy in advance.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200511/1

Nov 27 '05 #2
Thanks for the good info.

Do you know of any good books that step you through the deployment process in
depth?

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200511/1
Nov 29 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dmcconkey | last post by:
Hi folks, I have a website with linked CSS files controlling layout, via LINK tags. In these linked CSS files, I need to create dynamic styles. This is a website of articles, and for every...
1
by: Gabriel Lozano-Morán | last post by:
First of all sorry for the cross-posting but I am not sure wether this belongs under internationalization or just general. Environment: Visual Studio .NET 2003 Problem: Newly added and...
0
by: Chris Powell | last post by:
I am using Excel/Access 2000 and have two large Excel files (25,000 rows each) that I wish to create linked tables in Access rather than importing into Access. The two source Excel files change...
1
by: Brian Keanie | last post by:
Greetings. I've been asked to resurrect an existing database and have run into a few problems. 1) Some of the data (tables) seem to be on a separate and somehow linked file. How do you find which...
7
by: bill.brennum | last post by:
Hi, Have a number of Access Databases that I inherited and want to zip a few of them. My concern is that other active Microsoft Applications may be linking to the database or its tables. Is...
10
by: dreamcatcher | last post by:
I want my program to parse INI files, only have little clue of how to do that, though, hope you guys might shed some light on this, thanx. for example:
0
by: ORC | last post by:
Applies to C#, Visual Studio 2003 version 7.1.3088. I have a project where I have several linked files included. One problem is that when I make changes in one of the linked file I will have to...
9
by: Paul Kuebler | last post by:
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
10
by: rayuthar | last post by:
Hi, I have two files A.c and B.c , i can make executable with A.c alone or addition to B.c. If i make executable with two files , how can i know B.c is linked with A.c? Thanks, Rayuthar
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.