Sign in to follow this  
Followers 0
v1rtu0s1ty

Using it as a Service

4 posts in this topic

Hey guys,

I have written an autoit program that launches a gui frontend. I don't want to use scheduler because it's not reliable most especially when machine is rebooted. Can I 've used srvany before to create a service out of a .exe. Will it work since it will be executing a gui?

Thanks guys!

Neil

Share this post


Link to post
Share on other sites



I think that there are hassles regarding the extent that a service can interact with the user's desktop. Can you get away with using a Run/RunOnce/RunService registry entry?

Share this post


Link to post
Share on other sites

I think that there are hassles regarding the extent that a service can interact with the user's desktop. Can you get away with using a Run/RunOnce/RunService registry entry?

<{POST_SNAPBACK}>

I didn't get what you mean? Can you please elaborate?

Thanks!

Share this post


Link to post
Share on other sites

You don't need to use Task Scheduler to set a program to run on next startup. There are many ways to achieve this including creating an icon in the user's Startup menu, creating a registry entry under any of these keys:

  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
depending on whether you want your program to run on just the next reboot or on every reboot.

I don't know more about services than I need to, but I remember having problems with a program that wanted to interact with the desktop (e.g. GUI) -- Windows wouldn't let it do anything until I fiddled around with settings (which is understandable because a service generally isn't meant to have such functionality -- it's a service).

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