Re: Make a Windows Service start a windows program.



The OP's question relates to a "windows" program, not a console style
program. Note that the same remark about the user profile applies when
starting a console application, an application that considers it's profile
being loaded when started will fail if started from a service.
In general, services should not start other applications, unless you have
full control of it's UI and profile context.

What do you mean when you say:

"unless you have full control of it's UI and profile context"?

I have a similar situation where a service needs to instantiate an object contained in a WinForms app. The service and the app are installed as a pair; the UI is used to define the action taken by the service at pre-defined intervals.

When constructing the assembly in Visual Studio that contains the application/service pair, should the service and the app be in a separate namespaces? Does it make any difference? The design goal is to keep the service and the app a loosely coupled as possible since they run in different security contexts.

.



Relevant Pages

  • Re: Displaying a Form from within an ActiveX DLL
    ... Have checked and it if not hidden behind the app. ... ' THIS FUNCTION DISPLAYS A MSFLEXGRID CONTROL DISPLAYING THE PROFILE ... Dim ColumnName As String ... Dim GridColumnIndex As Integer ...
    (microsoft.public.vb.general.discussion)
  • Re: TS Roaming profiles and Local settings directory
    ... I suspect Outlook MVPs are going to have encountered this ... When the app launches, it basically does a mapi call to allow ... > If you have never logged into the server, and run the app, it fails to ... > The local settings portion of your TS profile ...
    (microsoft.public.windows.terminal_services)
  • Re: TS Roaming profiles and Local settings directory
    ... I suspect Outlook MVPs are going to have encountered this ... When the app launches, it basically does a mapi call to allow ... > If you have never logged into the server, and run the app, it fails to ... > The local settings portion of your TS profile ...
    (microsoft.public.outlook.installation)
  • Re: 16 Bit Subsystem - Per Profile?
    ... Oh, I have no doubt that creating a new profile would solve the problem, ... On one of the machines, this app will not run ... > In memory of a dear friend Alex Nichol MVP ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Extended MAPI as NT Service
    ... The other article that I reference was: ... > OutlookR Messages Automatically (via App. ... >> Do I have to create a new Profile? ... >> Using VS6 code samples, I created a new profile in code using ...
    (microsoft.public.win32.programmer.messaging)

Loading