Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Congratulations on a brilliant idea and a great site..."

Geography

Where in the world do Tek-Tips members come from?

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

mmy1981 (Programmer)
19 Apr 12 9:22
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?  

 
jebenson (TechnicalUser)
19 Apr 12 9:40


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

http://www.dreamincode.net/forums/topic/31219-working-with-the-windows-registry-in-vbnet/
 

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!  

mmy1981 (Programmer)
19 Apr 12 9:46
ah great, this never crossed my mind...This should to the trick, and I won't need the txt file anymore.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close