Hello Wayfarer,
What the reason for this? You need to understand that service is working
in absolutely different context then user IS. Moreover service starts *before*
user login. It's not so easy to perform what are u trying to do and this
is a bad behavior (iterating services with desctop options is removed in
the forthcoming version of windows).
I recomend u to put user depended code for start in the Starup folder
W> Hello,
W>
W> I'd like to run an application from a windows service.
W>
W> I followed the instructions on the MS site to create a service but
W> when it
W> starts Notepad - notepad window is not visible but process is there.
W> What could be the problem
W> My service has this code:
W> Process myProcess = new Process();
W> myProcess.StartInfo.CreateNoWindow = false;
W> myProcess.StartInfo.FileName = "notepad.exe";
W> myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
W> myProcess.Start();
W> Thanks
W> Evgueni
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche