In news:dn6f2q$p14$(E-Mail Removed),
Nicole <(E-Mail Removed)> made this post, which I then
commented about below:
> Hi
>
> It has been written by a colleague in Delphi, I believe it has been
> written as a service, it uses several service related function calls
> () from advapi32.dll.
>
> Unfortunately my experience of services is from win 98se. Basically I
> used to write my installation routines so they added an entry to
> HKEY_LOCAL_MACHINE\software\microsoft\windows\CurrentVersion\runServices
> Registry entry with the name of the program. My code used to call
> RegisterServiceProcess from KERNEL32.DLL and that was it.
>
> I'm now trying to get up to speed on writing and installing services
> for windows2000/xp, and not sure where to start! I don't want to have
> to log onto each client machine in order to install the service, so
> I'm hoping it can be done via group policy or similar, but I
> struggling to find information.
>
> So do I create an msi installation package that sets a value in the
> HKEY LOCAL MACHINE/System/CurrentControlSet/Services key? Can I then
> assign the package to a group of machines? If its assigned to a
> machine will it automatically execute at boot?
>
> Many thanks for the help
> N
Nicole, as I mentioned, srvany will do this for you. Have you looked into
it?
Here are some links on how to do it including EXACTLY what to do in the
registry:
How To Create a User-Defined Service
http://support.microsoft.com/kb/q137890/
This resource kit tool lets you run any program as a service. Mark Minasi
explains how the tool works.
http://www.windowsitpro.com/Articles...layTab=Article
and where to download it from (if you haven't found it yet at
www.microsoft.com/downwith pictures documented on how to use srvany:
Install and Run as SrvAny Service, SrvAny with download links (including how
to use the installer tool called 'InstSrv' to integrate into an application
installer for any apps you have developed that you want to install it as an
app:
http://www.iopus.com/guides/srvany.htm
Ace