Solved

Installation / Running Program Concerns

Posted on 2002-03-28
3
142 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 69

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now