Solved

Installation / Running Program Concerns

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

738 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