Launching an exe from Procrun

2019-09-20 17:41发布

问题:

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.