|
|
|
|
#1 |
|
Member
Join Date: Jul 2003
Posts: 57
|
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 |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
disable? what do you mean by disable? do you mean you want to stop it starting automatically when the system starts?
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2003
Posts: 57
|
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 |
|
|
|
|
|
#4 |
|
Senior Member
|
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.
|
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
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 |
|
|
|
|
|
#6 |
|
Member
Join Date: Jul 2003
Posts: 57
|
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 |
|
|
|
|
|
#7 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
That won't make any difference, you will always have to stop the service so users can't use it anymore.
|
|
|
|
|
|
#8 |
|
Member
Join Date: Jul 2003
Posts: 57
|
Yes, but I don't want users to be able to start or stop services while I'm running installer...
mdm |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|