Launching GUI App from Windows Service - Window Does Not Appear

后端 未结 5 860
情书的邮戳
情书的邮戳 2021-01-05 16:30

I have written a simple windows service which will launch a exe specified in the onstart() method of the service. After starting the service the exe got launch

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 16:48

    If you open your service's properties window, go to the Log On tab then check the "Allow service to interact with desktop" check box you will get the behavior you want. Also depending on what app you what to run you may need to change the log on account.

提交回复
热议问题