c# - Process.Start does not work when called from windows service -
on windows 8 running windows service. service supposed start program by
process.start(exepath);
but process exits - first line in main procedure not executed. before, when running same process in same service on windows 7, worked fine.
how can make work again? how start process windows service?
found solution. process has started this:
processstartinfo info = new processstartinfo(exepath); info.createnowindow = true; info.useshellexecute = false; process.start(info);
for reason there problems priviledges when creating shell window in background of system.
Comments
Post a Comment