- NSIS Discussion
- NT/2K/XP services installation?
Archive: NT/2K/XP services installation?
MWP
17th December 2001 05:57 UTC
NT/2K/XP services installation?
Hi all...
Normally instsrv.exe is used to install a service, but some vers of OS dont come with the utility.
So at the mo im including instsrv with my installer, extracting it, installing the service and then deleting instsrv.
Is there a better way to install a service?
F. Heidenreich
17th December 2001 07:28 UTC
You could implement self-registering capabilities to your service like the cygwin-inetd service.
Have a look at the code sample in the last post of this thread.
~ Florian
MWP
17th December 2001 10:29 UTC
The problem is its not my service and i dont have access to the code for it.
The service is the DriverLINX Port95NT driver for direct access to IO ports under NT.
MWP
18th December 2001 05:18 UTC
Anyone?
DuaneJeffers
18th December 2001 06:10 UTC
What you could do is check to see if they have the file using IfFileExists and the using nsisdl.dll to download it. Then running it. But sometimes the Startup folder in the Start Menu can run anything on Boot.
Just a suggestion though.
-Duane
nsnb
17th December 2008 03:56 UTC
Wow! This is a real old thread but unfortunately the only one that refers to instsrv.
I found it in my search for a similar solution.
Any news on this since then?
(otherwise I will have to do what the OP did: include instsrv with my installer, extract it, install the service and then delete instsrv)
Thanks!
Comperio
17th December 2008 05:19 UTC
For a few of my own internal utilities, I've used sc.exe and found it to be about the easiest as anything.
For more options, try searching the NSIS Wiki
nsnb
17th December 2008 14:54 UTC
Originally posted by Comperio
For a few of my own internal utilities, I've used sc.exe and found it to be about the easiest as anything.
Thank you! I knew that some progress must have been made since 2001.
However, I noticed that you said "my own internal utilities". Does that mean that the license for this utility (which is available only in Microsoft's resource kit) doesn't allow its re-distribution?
Originally posted by Comperio
For more options, try searching the NSIS Wiki
Thank you again - I didn't know about these. I found two relevant plugins:
http://nsis.sourceforge.net/NSIS_Simple_Service_Pluginhttp://nsis.sourceforge.net/Services_plug-inBoth seem to allow re-distribution in a commercial (non open source) product.
Which of the two would you recommend?
Comperio
17th December 2008 16:58 UTC
However, I noticed that you said "my own internal utilities". Does that mean that the license for this utility (which is available only in Microsoft's resource kit) doesn't allow its re-distribution?
I'm not sure how the MS licesne is written. It's probably in some license agreement you click on when you install. (I've never used it for anything other than my own testing tools, so I've never really looked that close at the license.)
Thank you again - I didn't know about these. I found two relevant plugins:
http://nsis.sourceforge.net/NSIS_Simple_Service_Plugin
http://nsis.sourceforge.net/Services_plug-in
Both seem to allow re-distribution in a commercial (non open source) product.
Which of the two would you recommend?
I've not really used either, so I can't really offer any good feedback. I'm guessing they probably both work much the same. I'd look over the docs for each and see which one give you the most of what you need.
Afrow UK
17th December 2008 18:12 UTC
I would recommend the Simple Service Plugin as I use it myself in many major installations.
Stu
nsnb
17th December 2008 20:31 UTC
Originally posted by Afrow UK
I would recommend the Simple Service Plugin as I use it myself in many major installations.
Thank you, Stu. I will take your recommendation.
kichik
17th December 2008 20:40 UTC
There's a complete list on the FAQ:
http://nsis.sourceforge.net/How_do_I...heck_a_service
nsnb
18th December 2008 16:20 UTC
Originally posted by kichik
There's a complete list on the FAQ:
http://nsis.sourceforge.net/How_do_I...heck_a_service
This is incredible - I didn't know about this list. Thank you so much, kichik!
If your recommendation is different than Stu's, please write it here. Thank you again.
kichik
19th December 2008 07:57 UTC
Never needed to use any of those, so I'm with Stu here.