Re: Make a Windows Service start a windows program.




"UJ" <fred@xxxxxxxxxxx> wrote in message
news:eAFd7Q7NGHA.4052@xxxxxxxxxxxxxxxxxxxxxxx
| Is there any way for a windows service to start a windows program ? I have
a
| service that will need to restart a windows app if it needs to.
|
| TIA - Jeff.
|
|

No there is no (easy, secure and portable) way to do this. A windows service
runs in a sandboxed non visible desktop, a process started from a service
inherits the same UI context so it will run in the same desktop, second the
service does not run in the security context of a logon user (if any), that
means that the lauched application won't have access to an interactive user
profile, so chances are that it fails to initialize when environmant
variables or profile setting are needed.

Willy.


.



Relevant Pages

  • Windows Utility to Monitor Starting of Services?
    ... I am looking for a Windows service that would act as a monitor for ... user name or security context of the user making the change ... Does any monitor service like what I am describing exist? ...
    (comp.security.misc)
  • Re: msi in a Windows Service
    ... different security context. ... small windows service, it does NOTHING!!! ... Dim psi As New ProcessStartInfo ...
    (microsoft.public.dotnet.general)
  • Re: Windows Service
    ... > Sounds like something similar is done with a "Windows service". ... that is they can run in their own security context or assume the context of ... I have Jeffrey Richter book, ... another on service control programs. ...
    (microsoft.public.win32.programmer.ui)
  • Creating windows service and security context
    ... I created a windows service and installed it on my workstation. ... I tried running the service as my logon user giving it log on as service ... right on the remote server. ... And also, are there other security policies, etc. ...
    (microsoft.public.dotnet.general)