Solved

Installation / Running Program Concerns

Posted on 2002-03-28
3
148 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 100 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month4 days, 7 hours left to enroll

636 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