Jump to content

HELP with createing a service (interactive)

Recommended Posts

I tryed every ting a can think of to get a good service running on boot, but fail!

i tryed all the scrips i can find.

i would like a service that starts with TCPIP (for remotecontrol and diagnostics, even if no user is looged on. Got this part working.)

1. This work, but not what i want, i want this -> ($SERVICE_INTERACTIVE_PROCESS, $SERVICE_WIN32_OWN_PROCESS)

_Service_Create($sServiceName, $sServiceName, $SERVICE_WIN32_SHARE_PROCESS, $SERVICE_AUTO_START, $SERVICE_ERROR_SEVERE, '"' & @WindowsDir & "\" & $sServiceName & ".exe" & '"')

2. This work kind of?? om most computer i run this it takes forever before windows XP finnish login and create the desktop. (users complain on slow computers when i run this)

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

3. THIS even makes a dependencie TCPPIP with some service.au3 i tryed (even if the code must be wrong.)

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




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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...