Archive: NT/2K/XP services installation?


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?


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


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.


Anyone?


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


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!


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


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_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?

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.

I would recommend the Simple Service Plugin as I use it myself in many major installations.

Stu


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.

There's a complete list on the FAQ:

http://nsis.sourceforge.net/How_do_I...heck_a_service


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.

Never needed to use any of those, so I'm with Stu here.