By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,489 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

Windows service start windows application

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
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

Nov 21 '05 #2

P: n/a
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')???

"Anand[MVP]" wrote:
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.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
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

Nov 21 '05 #3

P: n/a
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

Nov 21 '05 #4

P: n/a
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
"Pippo" wrote:
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')???

"Anand[MVP]" wrote:
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.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.