I have created an windows service. I want to open some windows based application from this service.
But my windows service is unable to start desktop applications. To enable the access I had to do the following steps:
Opened the administrative tool "Services"
Right clicked on my service and had to select "properties"
Then in the "Log On" tab, selected "Allow service to interact with desktop".
After that my service can open desired windows based processes.
Can I configure my windows service in the code (C#) to access the desktop so that I won't have to change the access permission manually after installation?