Windows service start windows application

G

Guest

My environment...
VS .NET 2003
One solution
3 Project (1 Windows service - 1 Windows application - 1 Installshield basic
msi)

I know that there's not possible create a service with gui. In effect i must
was to be create a 2 different project

How to interact the service with the application?

Or better when the service start how to launch the other application
(project)? In conseguenz
 
G

Guest

I dont think you can do that. Even if you lauch the EXE, the UI(even with
interact with desktop on) will not be visible as most probably the Service is
loaded even before you log in.

If you run the exe seperately, you can communicate with the service via
named pipes or sockets etc.
 
G

Guest

Soory for my eenglish but you don't understand...

The service onstart must to be launch the application. In pratically one exe
service that launch one exe application. But i don't know how.... you say me
or name pipes or socket ... Are you sure ther's not other method like
shell('exe application')???
 
S

stand__sure

you can configure the service to start manually (via the StartType
property) and then start it from either Services in Administrative
tools or from a custom application that you write. you can pass
arguments to the OnStart method...

as for a "Shell" command approach "NO" -- a service is controlled by
the SCM and in order for it to work properly you must interact with it
through either the Service Control Manager or through the appropriate
..NET classes
 
G

Guest

I understood your need, but AFAIK, it is not possible to lauch a UI from a
service. A shell() will work without any errors and your exe will run, but
the GUI will not appear as the exe will be running the Services context and
not in the Desktop context.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top