Old 21st October 2005, 13:06   #1
TagBryan
Junior Member
 
Join Date: Oct 2005
Location: UK
Posts: 1
Question Stopping a service (IISADMIN) with Dependencies

Hi.

I’m trying to use Service Library to stop the IISADMIN service. I SendServiceCommand ‘stop’ and then loop until IsServiceRunning is false – this never happens! I think the problem is IISADMIN has dependencies (which ones seems to vary from machine to machine). How do I overcome this? Is there a way to enumerate the dependencies so I can stop these first? An example please.


I note that SC.EXE has a EnunDepend command, so thinking of do this is a (Jscript) script. Has anyone got such a script?

This is not my area so please, spell it out for me!!

Many thank
Bryan
TagBryan is offline   Reply With Quote
Old 21st October 2005, 13:30   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Did you try one of the other plug-ins? It might be a problem with the Service Library and not the dependencies.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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