Old 11th August 2003, 16:11   #1
mdm
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
mdm is offline   Reply With Quote
Old 11th August 2003, 16:26   #2
Sunjammer
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?
Sunjammer is offline   Reply With Quote
Old 12th August 2003, 17:47   #3
mdm
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
mdm is offline   Reply With Quote
Old 12th August 2003, 17:58   #4
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
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.
rainwater is offline   Reply With Quote
Old 13th August 2003, 00:13   #5
Sunjammer
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
Sunjammer is offline   Reply With Quote
Old 13th August 2003, 16:30   #6
mdm
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
mdm is offline   Reply With Quote
Old 13th August 2003, 17:40   #7
Joost Verburg
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.
Joost Verburg is offline   Reply With Quote
Old 14th August 2003, 22:39   #8
mdm
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
mdm is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump