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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -