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?
NT/2K/XP services installation?
14 posts
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
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.
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
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!
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!
Originally posted by ComperioThank you! I knew that some progress must have been made since 2001.
For a few of my own internal utilities, I've used sc.exe and found it to be about the easiest as anything.
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 ComperioThank you again - I didn't know about these. I found two relevant plugins:
For more options, try searching the NSIS Wiki
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: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.
Both seem to allow re-distribution in a commercial (non open source) product.
Which of the two would you recommend?
I would recommend the Simple Service Plugin as I use it myself in many major installations.
Stu
Stu
Originally posted by Afrow UKThank you, Stu. I will take your recommendation.
I would recommend the Simple Service Plugin as I use it myself in many major installations.
There's a complete list on the FAQ:
Originally posted by kichikThis is incredible - I didn't know about this list. Thank you so much, kichik!
There's a complete list on the FAQ:
http://nsis.sourceforge.net/How_do_I...heck_a_service
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.