Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Computer Security > Creating a Windows Service with dependencies

Reply
Thread Tools

Creating a Windows Service with dependencies

 
 
Harry Bellafonte
Guest
Posts: n/a
 
      09-11-2008
Hi

I have created a Windows Sesrvice through a reg file. This is the
content of the reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\User Admin
Agent]
"Description"="Starts the User Process."

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\User Admin Agent
\Parameters]
"Application"="C:\\RunAgent\\UserProcess.cmd"

The service is created perfectly. What I want to do is the following.
When I stop the service I would like to kill/shutdown a process that
is initiated when the service is started. I have asked around how to
do it. I found out that it is possible but I have to add dependencies
when creating the Windows Service.
How can I create a dependency at the creation of the Windows Service?
And how can I make sure that this dependency is to shut down a
process(in this case java.exe)?

Any help will be appreciated.

Regards
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing dependencies in Windows RVince Python 1 02-22-2011 08:01 PM
Creating a Web Service (Service, not Client) from WSDL Bert Leu ASP .Net 1 11-23-2007 08:29 PM
Creating a Web Service (Service, not Client) from WSDL Bert Leu ASP .Net Web Services 1 11-23-2007 07:59 PM
Using gems on Windows without dependencies S. Robert James Ruby 3 12-19-2006 06:38 PM
Using gems on Windows without dependencies S. Robert James Ruby 0 12-19-2006 01:45 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57