Starting application using Windows Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

I would like to know if is it possible start an application through WINDOWS
SERVICE using System.Diagnostics.Process.Start()?


I've tried to do this but nothing happens.

Tks!
 
Did you trap exceptions?

The account under which your service runs may not have permission to
launch the app.
 
The service didn't trap any exception. And the service is running under
administrator account .

The processes appears on task manager under the user name "SYSTEM".

I want to know if is possible to start a application using windows Services...

Thanks!!
 
I believe that, by default, no interfaces/graphical output are produced from
a service, unless specifically enabled.
Check the Windows Event Log for messages/output from your application.
 
I would create my own Event Log and use it for debugging. Create a
System.Diagnostics.EventLog to your service and a
System.Diagnostics.EventLogInstaller to your installer then you can add
debugging message into your service.
 
Yes, it's possible. Make sure the service is set to interact with the
windows desktop so that the launched app will be visible. A simple test is
to try to launch a batch file that pauses - you should see it and is should
respond to your input.
 
Back
Top