Sign in to follow this  
Followers 0
autoitxp

Install as service

6 posts in this topic

Hi

I would like to ask is there any clean way to install auto-it application as service currently i have tried to use ServiceEx.exe this install service successfully but when it start and run in process nothing happens never works properly as it made to work

Share this post


Link to post
Share on other sites



I have only had a small amount of experience with installing applications as services. The one thing I found out is that programs with GUI interfaces don't work as services because many services run before you log in to the computer, thus before any GUI interfaces can not be created.

What kind of tasks is the script trying to accomplish?


RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post


Link to post
Share on other sites

simple loop to check local area network connection using

WinInet.dll InternetGetConnectedState

and than check pings for URL and pop up

msgbox

to display IP . Not using any GUI interface in my application.

it install service successfully but when it come run as service it just in process but never works properly

Share this post


Link to post
Share on other sites

Use SrvAny.exe from microsoft

http://support.microsoft.com/kb/137890

Also works on new Windows versions

It should be noted that "new Windows versions" only accounts for up to Windows XP. It does not natively work on WIn7 and above, or Server 2008 and above. There are some hacks floating around technet to get srvany to work on these Operating Systems, but the best bet for these is probably sc.exe.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

This code for cmd works well in windows 7..

SC Create "service name" binPath= @scriptfullpath start= auto

type SC Create /? for a list of all uses, to parse a parameter you need to have it set out like this with the space

parameter= data

eg: binPath= C:windowsexplorer.exe

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