Ghastly_MIB Posted January 16, 2008 Posted January 16, 2008 (edited) Hello all, I'm trying to install an autoitscrip executable as an service. The current install line i'm using would be: Run(@ComSpec & " /c " & "sc create MyService binpath= """ & @ScriptFullPath & " /start"" type= share type= interact start= auto", "", @SW_HIDE) When i'm trying to start the service, it would be visible in my systemtray. But in the services list the status is "Starting..." (dutch OS, so it's a guess). And after 30 seconds, the program closes. The windows log says that the program did not responsed. Is there a way to fix this? Thanks, Mathijs Edited January 16, 2008 by Ghastly_MIB
Developers Jos Posted January 16, 2008 Developers Posted January 16, 2008 shouldn't this part : binpath= """ & @ScriptFullPath & " /start"" be: binpath= """ & @ScriptFullPath & """ /start And you have twice a "Type=". shouldn;t that be one of the 2 ? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Ghastly_MIB Posted January 16, 2008 Author Posted January 16, 2008 Hey,the /start command line would be used for the command line for the autoit script.Example: C:\test.exe /startAnd the type must be added twice:More info: http://support.microsoft.com/kb/251192/enIt installs succesfull, but the services think that the program does not work, and shutdown the application after 30 seconds. (timeout). The program work without any problem in that 30 seconds. But that it closes.
arcker Posted January 16, 2008 Posted January 16, 2008 already discussed for running an exe as service, it must fill some contraints to run. you can'to do this with autoit exe. but you can use srvany.exe. it will do the job well. -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now