Hey guys,
I've written a fairly simple Windows C# Application using Visual Studio
2005. I have to manually run it, but I would prefer to have it run on it's
own, as if it was a Windows NT Service. I am a Delphi convert (still use it
for some jobs). When developing in Delphi, I would write a console
application that would basically run on it's own. In order for me to register
it as a Windows NT Service, I seem to recall that I would do something like
SVCREG32.EXE (Application.EXE) /REGISTER or something to that effect. It
would then appear under my list of Services. I could control the startup of
the application.
In my Delphi application itself, I would use a timer which would make the
app run once every... I dunno 2 minutes or something?
With C#, I don't have that. I haven't actually checked to see if there is a
timer component, but I'm sure I can do something. My real question is though,
how can I register my Windows C# Console Application as a Windows NT Service?
Does anyone have any examples of how to accomplish this?
Thanks!