Solved

Installation / Running Program Concerns

Posted on 2002-03-28
3
145 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

860 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