Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Installation / Running Program Concerns

Posted on 2002-03-28
3
Medium Priority
?
149 Views
Last Modified: 2010-05-02
I have an application that is run from a local drive -- but connects to a server drive.  During the startup of the application I want to be able to check the server for updated files.  What I'm running into is that I don't know where the server file is going to be (and it may change in the future).  Right now I'm hard coding it into the application -- which is a terrible thing to do.  But I'm not sure how to do this.  The application relies on an .ini file and I have the server directory in the file  -- but I haven't figured out to install this .ini file.  Any suggestions?

Does this make sense?  What happens if the .ini file is deleted? Stuff like that.
0
Comment
Question by:srobia
[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
3 Comments
 

Accepted Solution

by:
RedThread earned 400 total points
ID: 6902709
Hello srobia,

General this is done the way you are thinking. Just store the path for updates in a ini file.
This is the easyest way to change afterwards.
Whenever your drive is changing from location, you must change your ini file.

The place for installing this ini file depends. Mostly this is done in the windows directory, but prefereble is the same directory where you program is located.

Use the package & deployment wizard and when you are at the 'included files' topic, just hit the 'add' button.
This way you can add the ini file and so it will be installed with your program whenever you go installing it.

Hope this helps.

RED
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6904959
You need to have another EXE that will be launch instead of your actual application, that will check for a new version, copy it if required and launch it.
0
 

Author Comment

by:srobia
ID: 6905039
Works exactly the way I wanted it to.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

730 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