Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

service needs to acces a file from an "unknown" folder

Status
Not open for further replies.

mmy1981

Programmer
Apr 2, 2007
164
BE
Hi,
I'm having a problem, not sure how to deal with this...

Service 1 (created in vb.net) gets installed in a folder (the user can choose where to install it). In this folder there's an access table. The user can change the records in here.

Service 2 gets installed, also in a user defined folder. However, this service needs to access the access table too (just to read data).

So, I have to tell to Service 2 where the access table is located. I prefer giving this info during the installation of the 2nd service. Maybe writing this info in a txt file stored in the folder of Service 2. So, when started, Service2 can read this txt file. I guess this can be done with a custom action during the setup.

Are there other (better) possibilities? Best would be: Setup Service1 is launched. After the install, setup Service2 is launched automatically (and knows where Service1 was installed). Anybody knows if this is possble and how?

 
This is exactly what the Windows registry is for. Here's a link to a tutorial:



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
ah great, this never crossed my mind...This should to the trick, and I won't need the txt file anymore.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top