Sign in to follow this  
Followers 0
lgvlgv

Help to create a service, needed.

6 posts in this topic

This work but not as i want.

it starts but i would like to wait for network to start before starting the service..

_Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"')

So i did this and every thing looks ok? "dependences" look exacly like for exampel "uvnc_service" (remote control app) so it should wait for tcpip before started..

_Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"',Default,Default,"Tcpip")

but this wont start, it says Error 1075: u could not start the service "test1" on local computer the depending service dosent exist or is marked for removel.

//Pleace help a NoOb :graduated:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Isn't there a delayed start option in services? Is there any way to apply that to your script? Either that or implement your own loop that checks for a successful ping to a server or something would be one method perhaps.

Edited by Morthawt

Share this post


Link to post
Share on other sites

funny part!

This works but it cannot be right, right?

_Service_Create($sServiceName, $sServiceName, BitOR($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS), $SERVICE_AUTO_START, $SERVICE_ERROR_NORMAL, '"' & @WindowsDir & '\' & @ScriptName & '"',"Tcpip","Tcpip","Tcpip")

Share this post


Link to post
Share on other sites

yep, its just weard? and for once i would like to know what im doing :graduated:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0