Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   disabling an automatic service for installation (http://forums.winamp.com/showthread.php?t=145437)

mdm 11th August 2003 15:11

disabling an automatic service for installation
 
I need to disable a service prior to unregistering, stopping and replacing. Is there a system call for a disable and subsequent re-enable of automatic service in windows?

mdm

Sunjammer 11th August 2003 15:26

disable? what do you mean by disable? do you mean you want to stop it starting automatically when the system starts?

mdm 12th August 2003 16:47

I mean that I have a service whose startup type is set to automatic; it is availible to the network. I want to reset service to disable, do my install, and then reset again to automatic to make availible to network again. I hope that clarifys.

thanks,
mdm

rainwater 12th August 2003 16:58

Turning it from Automatic to Disable doesn't stop the service. It seems you should be wanting to stop the service, install, then start the service.

Sunjammer 12th August 2003 23:13

The best I can offer right now (I'm a little tired/drunk ;)) is to point you in the direction of a plugin for NSIS I wrote a long time ago. It might not solve all of your issues but it will help and I or others will get you all the way pretty quickly, have no fear ;)

http://nsis.sourceforge.net/archive/...rvices.dll.zip

mdm 13th August 2003 15:30

The thought here is that prior to stopping service, I want to make the service inaccessible to the network...so that I don't interrupt someone who's in the middle of using service. Admittedly either way I'm going to bum someone out, but this may be a better way to do that?

mdm

Joost Verburg 13th August 2003 16:40

That won't make any difference, you will always have to stop the service so users can't use it anymore.

mdm 14th August 2003 21:39

Yes, but I don't want users to be able to start or stop services while I'm running installer...

mdm


All times are GMT. The time now is 17:48.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.