Launching an exe from Procrun

限于喜欢 提交于 2019-12-13 07:48:37

问题


How can I launch an exe file from Procrun? Apart from that I also tried to launch a frame from the service code itself by specifying the following line in my install script. But that too doesn't work as no GUI is launched though the service is started successfully.

set PR_TYPE=interactive 

If I am to launch an exe using procrun, how am I to do that and if I am to launch a JFrame, how am I to do that? I can't find any similar questions in procrun as all the other interactive java service oriented questions are based on tanuki service wrapper. Please advice.


回答1:


Maybe those articles MSDN - interactive services and SO anser to C# - service-starting-a-process-wont-show-gui explains the problem with a GUI and a service. Better solution would be creating a service and a separate GUI which iteracts with that service.



来源:https://stackoverflow.com/questions/35765273/launching-an-exe-from-procrun

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!