PC Review


Reply
Thread Tools Rate Thread

Create a service for an application?

 
 
Gonzo
Guest
Posts: n/a
 
      27th Nov 2006
I have an old application that just ran as by clicking on its exe. It's
just goes into the system tray by the desktop clock. It's always run as a
startup item, but I want to get it to run as a service, so if it fails I can
get it to restart and have MOM 2005 alert me due to it's event id.

Anyway I have created the service and the application starts up but only in
the background "processes > task manager". It doesn't show up in the system
tray. It has to be there so I can double click it to bring up the
application and use it.

I tried the "allow service to interact with the desktop" but I get some sort
of error saying this is not supported. It's like a loop.
Any ideas would be great?


 
Reply With Quote
 
 
 
 
John John
Guest
Posts: n/a
 
      27th Nov 2006
How To Create a User-Defined Service
http://support.microsoft.com/kb/137890

How to Create a Windows Service Using Sc.exe
http://support.microsoft.com/kb/251192

John

Gonzo wrote:

> I have an old application that just ran as by clicking on its exe. It's
> just goes into the system tray by the desktop clock. It's always run as a
> startup item, but I want to get it to run as a service, so if it fails I can
> get it to restart and have MOM 2005 alert me due to it's event id.
>
> Anyway I have created the service and the application starts up but only in
> the background "processes > task manager". It doesn't show up in the system
> tray. It has to be there so I can double click it to bring up the
> application and use it.
>
> I tried the "allow service to interact with the desktop" but I get some sort
> of error saying this is not supported. It's like a loop.
> Any ideas would be great?
>
>


 
Reply With Quote
 
Gonzo
Guest
Posts: n/a
 
      27th Nov 2006
I don't understand. I have already done this and created the service part,
as explained in the post.


"John John" <(E-Mail Removed)> wrote in message
news:e%(E-Mail Removed)...
> How To Create a User-Defined Service
> http://support.microsoft.com/kb/137890
>
> How to Create a Windows Service Using Sc.exe
> http://support.microsoft.com/kb/251192
>
> John
>
> Gonzo wrote:
>
>> I have an old application that just ran as by clicking on its exe. It's
>> just goes into the system tray by the desktop clock. It's always run as
>> a startup item, but I want to get it to run as a service, so if it fails
>> I can get it to restart and have MOM 2005 alert me due to it's event id.
>>
>> Anyway I have created the service and the application starts up but only
>> in the background "processes > task manager". It doesn't show up in the
>> system tray. It has to be there so I can double click it to bring up the
>> application and use it.
>>
>> I tried the "allow service to interact with the desktop" but I get some
>> sort of error saying this is not supported. It's like a loop.
>> Any ideas would be great?

>



 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      27th Nov 2006
Sorry, I misread your post. As far as I know that has to be done with
the Shell_NotifyIcon API function, it has to be programmed. I don't
know how to do that other than perhaps using a third party helper
application.

John

Gonzo wrote:

> I don't understand. I have already done this and created the service part,
> as explained in the post.
>
>
> "John John" <(E-Mail Removed)> wrote in message
> news:e%(E-Mail Removed)...
>
>>How To Create a User-Defined Service
>>http://support.microsoft.com/kb/137890
>>
>>How to Create a Windows Service Using Sc.exe
>>http://support.microsoft.com/kb/251192
>>
>>John
>>
>>Gonzo wrote:
>>
>>
>>>I have an old application that just ran as by clicking on its exe. It's
>>>just goes into the system tray by the desktop clock. It's always run as
>>>a startup item, but I want to get it to run as a service, so if it fails
>>>I can get it to restart and have MOM 2005 alert me due to it's event id.
>>>
>>>Anyway I have created the service and the application starts up but only
>>>in the background "processes > task manager". It doesn't show up in the
>>>system tray. It has to be there so I can double click it to bring up the
>>>application and use it.
>>>
>>>I tried the "allow service to interact with the desktop" but I get some
>>>sort of error saying this is not supported. It's like a loop.
>>>Any ideas would be great?

>>

>
>


 
Reply With Quote
 
Gonzo
Guest
Posts: n/a
 
      27th Nov 2006
What is a Shell_NotifyIcon API function? The thing is if I just run the
application fromthe desktop it puts this icon in the system tray, but not if
run as a service...


"John John" <(E-Mail Removed)> wrote in message
news:ehfR$$(E-Mail Removed)...
> Sorry, I misread your post. As far as I know that has to be done with the
> Shell_NotifyIcon API function, it has to be programmed. I don't know how
> to do that other than perhaps using a third party helper application.
>
> John
>
> Gonzo wrote:
>
>> I don't understand. I have already done this and created the service
>> part, as explained in the post.
>>
>>
>> "John John" <(E-Mail Removed)> wrote in message
>> news:e%(E-Mail Removed)...
>>
>>>How To Create a User-Defined Service
>>>http://support.microsoft.com/kb/137890
>>>
>>>How to Create a Windows Service Using Sc.exe
>>>http://support.microsoft.com/kb/251192
>>>
>>>John
>>>
>>>Gonzo wrote:
>>>
>>>
>>>>I have an old application that just ran as by clicking on its exe. It's
>>>>just goes into the system tray by the desktop clock. It's always run as
>>>>a startup item, but I want to get it to run as a service, so if it fails
>>>>I can get it to restart and have MOM 2005 alert me due to it's event id.
>>>>
>>>>Anyway I have created the service and the application starts up but only
>>>>in the background "processes > task manager". It doesn't show up in the
>>>>system tray. It has to be there so I can double click it to bring up
>>>>the application and use it.
>>>>
>>>>I tried the "allow service to interact with the desktop" but I get some
>>>>sort of error saying this is not supported. It's like a loop.
>>>>Any ideas would be great?
>>>

>>
>>

>



 
Reply With Quote
 
3c273
Guest
Posts: n/a
 
      28th Nov 2006
Does this program have network access? Did you create the service with
srvany.exe? I seem to remember that the srvany.exe that came with NT4 had
the limitation that the service could be either interactive or have netwok
access, but not both. I think there was a work around for this but I don't
recall what it was.
Louis

"Gonzo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What is a Shell_NotifyIcon API function? The thing is if I just run the
> application fromthe desktop it puts this icon in the system tray, but not

if
> run as a service...
>
>
> "John John" <(E-Mail Removed)> wrote in message
> news:ehfR$$(E-Mail Removed)...
> > Sorry, I misread your post. As far as I know that has to be done with

the
> > Shell_NotifyIcon API function, it has to be programmed. I don't know

how
> > to do that other than perhaps using a third party helper application.
> >
> > John
> >
> > Gonzo wrote:
> >
> >> I don't understand. I have already done this and created the service
> >> part, as explained in the post.
> >>
> >>
> >> "John John" <(E-Mail Removed)> wrote in message
> >> news:e%(E-Mail Removed)...
> >>
> >>>How To Create a User-Defined Service
> >>>http://support.microsoft.com/kb/137890
> >>>
> >>>How to Create a Windows Service Using Sc.exe
> >>>http://support.microsoft.com/kb/251192
> >>>
> >>>John
> >>>
> >>>Gonzo wrote:
> >>>
> >>>
> >>>>I have an old application that just ran as by clicking on its exe.

It's
> >>>>just goes into the system tray by the desktop clock. It's always run

as
> >>>>a startup item, but I want to get it to run as a service, so if it

fails
> >>>>I can get it to restart and have MOM 2005 alert me due to it's event

id.
> >>>>
> >>>>Anyway I have created the service and the application starts up but

only
> >>>>in the background "processes > task manager". It doesn't show up in

the
> >>>>system tray. It has to be there so I can double click it to bring up
> >>>>the application and use it.
> >>>>
> >>>>I tried the "allow service to interact with the desktop" but I get

some
> >>>>sort of error saying this is not supported. It's like a loop.
> >>>>Any ideas would be great?
> >>>
> >>
> >>

> >

>
>



 
Reply With Quote
 
John John
Guest
Posts: n/a
 
      28th Nov 2006
Shell_NotifyIcon is used in programing, it's written in the program.
Did you set your service to start when the computer starts, aka
"Automatic" start? What happens if you start the service after the
computer is started and the desktop is loaded?

John

Gonzo wrote:
> What is a Shell_NotifyIcon API function? The thing is if I just run the
> application fromthe desktop it puts this icon in the system tray, but not if
> run as a service...
>
>
> "John John" <(E-Mail Removed)> wrote in message
> news:ehfR$$(E-Mail Removed)...
>
>>Sorry, I misread your post. As far as I know that has to be done with the
>>Shell_NotifyIcon API function, it has to be programmed. I don't know how
>>to do that other than perhaps using a third party helper application.
>>
>>John
>>
>>Gonzo wrote:
>>
>>
>>>I don't understand. I have already done this and created the service
>>>part, as explained in the post.
>>>
>>>
>>>"John John" <(E-Mail Removed)> wrote in message
>>>news:e%(E-Mail Removed)...
>>>
>>>
>>>>How To Create a User-Defined Service
>>>>http://support.microsoft.com/kb/137890
>>>>
>>>>How to Create a Windows Service Using Sc.exe
>>>>http://support.microsoft.com/kb/251192
>>>>
>>>>John
>>>>
>>>>Gonzo wrote:
>>>>
>>>>
>>>>
>>>>>I have an old application that just ran as by clicking on its exe. It's
>>>>>just goes into the system tray by the desktop clock. It's always run as
>>>>>a startup item, but I want to get it to run as a service, so if it fails
>>>>>I can get it to restart and have MOM 2005 alert me due to it's event id.
>>>>>
>>>>>Anyway I have created the service and the application starts up but only
>>>>>in the background "processes > task manager". It doesn't show up in the
>>>>>system tray. It has to be there so I can double click it to bring up
>>>>>the application and use it.
>>>>>
>>>>>I tried the "allow service to interact with the desktop" but I get some
>>>>>sort of error saying this is not supported. It's like a loop.
>>>>>Any ideas would be great?
>>>>
>>>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Service application Occurs Application Error Event ID 1000 =?Utf-8?B?VGVkZHk=?= Microsoft Dot NET Framework 1 11th Dec 2006 01:14 PM
How to create a Service to Log Application Names gerard.mears@gmail.com Microsoft VB .NET 3 6th Mar 2006 06:20 PM
can i create web service and asp.net application both in the root of the webserver ? roni Microsoft ASP .NET 2 30th Apr 2005 08:29 PM
exchanging data between a win32 application (service) and a c# application (service) dthom Microsoft C# .NET 9 5th Apr 2005 05:17 PM
How can i create a windows service for my application? Lucian Microsoft C# .NET 3 18th Aug 2003 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:42 AM.