![]() |
How to start stop uninstall services BASED on IF services are started, stopped, etc?
I need to communicate with services and communication is very dependent on the services current state. e.g. There is no point in trying to start a started service. No point in trying to stop a stopped service. No point in trying to uninstall a nonexistent service...
I've been pulling my hair trying hard on this. I've download the services.dll by sunjammer I believe. I've downloaded the NSIS service lib and worked with that. Both choices are no go. Sunjammers solution works with MessageBoxes BUT how do I use that to my advantage? How do I say IF service is installed GOTO Is service running? IF service is running please stop it. IF service is installed but not running please uninstall. Man, I tried clear errors, IfErrors and a bunch of other stuff and cant quite get any thing to work. This is something I tried in so many different variations but give me no cigar :( code: Any body have any ideas? I much rather work with the plugin by sunjammer than work with the other script. I could in no way get the other script to work. I couldn't even get an error out of it :( Can someone please help. Thanks! |
I've solved it ;)
I've solved it... I was going to sleep before posting that last message but I could never really sleep without solving a problem from the night before ;)
Anyway, I promise to post my solution tomorrow for those looking on seeing about how I did it. |
[off topic]
Are you the same vbgunz from Abyss? :) [/off topic] |
Hello Lobo. Yes, I am that vbgunz ;)
Here is how I solved the IF service exist do something or do something else. The following code is for use with the services plugin. I hope this helps :) code: |
| All times are GMT. The time now is 05:42. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.