Start application through windows service [closed]

0

Is it possible to start an .exe application when starting Windows Service C #?

Something of the Type:

    protected override void OnStart(string[] args)
    {

        Process.Start(@"C:\service.exe");
    }

    protected override void OnStop()
    {
    }

Thank you!

    
asked by anonymous 26.01.2017 / 18:03

1 answer

4

You can not start a desktop interactive application from a Windows service. This has changed from Windows Vista.

You can even run Process.Start(@"C:\service.exe"); , but the application will run in the background, not as a desktop application. This is due to the new User Account Control (UAC).

    
26.01.2017 / 18:35