0

I've read some extensive discussion from here:

How can a Windows service execute a GUI application?

And have some understanding that for a service to launch an .exe they need user credentials. The exe I need to have running is a command line application that has no output, but does not require a specific user to run.

Is there a way to allow my service to run the command line application so I don't have to put in user credentials?

I tried using Process.Start with process info CreateNoWindow set to true and UseShellExecute set to false, but still the command line program will not execute.

Community
  • 1
  • 1
aperture
  • 53
  • 9
  • You can't open up a GUI from a service. Is the command a built-in command in Windows? – Arian Motamedi Oct 03 '14 at 18:47
  • Unfortunately, the command isn't a windows command. It's located in Program Files. But the program isn't a gui, it's a command line executable. – aperture Oct 03 '14 at 18:51

1 Answers1

0

Take a look at this Windows service wrapper, specifically:

StartProcess in Main.cs

Ani
  • 10,826
  • 3
  • 27
  • 46