c# - Running external process from windows service -


i have windows service uses third party application. application built single window login, after login process running in background , not bother anyone.

i have code opens application (using process class), fills necessary fields , hit connect button. code works when using command line or win form, executing code windows service nothing – not errors , no exe running!

i know sounds bit strange , windows service should ui free design need lunch app before service can start work , don’t want make operation 2 steps - lunching external , starting service.

i tried check "allow service interact desktop" logon tab in service properties did nothing.

any suggestions how make work, or perhaps other design problem me manage operation in single step.

thanks.

you need recalibrate expectations. launch service automatically when system starts. launch app when user logs in (e.g. hklm\software\windows\currentversion\run). arrange service resilient being started before app. ensure service can survive app stopping (e.g. crashing) , being restarted.

why this? well, services intended run @ times, if there no interactive users connected. if cannot expect interactive app running before service starts.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -