Old 20th November 2001, 19:44   #1
TicTac
Junior Member
 
Join Date: Nov 2001
Location: Topeka, Kansas
Posts: 2
Send a message via ICQ to TicTac Send a message via AIM to TicTac Send a message via Yahoo to TicTac
Feature wanted - Create Service | Start/Stop service

i would like to see something along the lines that Create services for NT boxes. i would also want something that start/stop services when installing programs that might interfere with the service. (installing apache over a phptriad application for example)

if you could somehow get these working, i bet alot more people would be happier.... at least youll have one.. me

Thanks,
Tic Tac
TicTac is offline   Reply With Quote
Old 21st November 2001, 03:29   #2
felfert
Junior Member
 
Join Date: Nov 2001
Location: Ludwigsburg, Germany
Posts: 31
Re: Feature wanted - Create Service | Start/Stop service

Quote:
Originally posted by TicTac
i would like to see something along the lines that Create services for NT boxes.
...
Sounds nice, but ...
perhaps this does not belong to an installer but to the executable which implements the service. When creating services, there are so much parameters which need to be correctly specified. The programmer of the service executable should know best about what parameters to use.
A good example for that is inetd from the cygwin dist. It has two commandline options --install-as-service and --remove-as-service which (un)registers itself.
For start/stop you are probably right.

-Fritz
felfert is offline   Reply With Quote
Old 21st November 2001, 19:50   #3
locnar42
Junior Member
 
Join Date: Oct 2001
Location: kansas city
Posts: 45
Send a message via Yahoo to locnar42
For stop and starting a service, just use the net command. specify either "start" or "stop" as the first parameter and the name of the service as the second.

For all services which I've written, I've always built the ability to register and unregister themselves into the application. Adds very little overhead and what better place to put it.
locnar42 is offline   Reply With Quote
Old 21st November 2001, 19:55   #4
TicTac
Junior Member
 
Join Date: Nov 2001
Location: Topeka, Kansas
Posts: 2
Send a message via ICQ to TicTac Send a message via AIM to TicTac Send a message via Yahoo to TicTac
hmm.. so how do you actually create a service? can you link me to somewhere i can find this out.

Thanks
Tic Tac
TicTac is offline   Reply With Quote
Old 22nd November 2001, 09:33   #5
felfert
Junior Member
 
Join Date: Nov 2001
Location: Ludwigsburg, Germany
Posts: 31
Quote:
Originally posted by TicTac
hmm.. so how do you actually create a service? can you link me to somewhere i can find this out.

Thanks
Tic Tac
Have a look at the attached code. This is the cygwin inetd. You can
get the full package (inetutils) from one of the mirrors listed here.

-Fritz
Attached Files
File Type: zip inetd.c.zip (13.1 KB, 306 views)
felfert is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump