'Run exe with UI from installed Window service

I am trying to run an Exe on start of window service . In development mode it triggers exe and UI is visible once triggered . But after windows service installed , i am not seeing the UI but exe is running as background process. How to make UI visible for the tiggered exe from windows service.



Solution 1:[1]

Services do not display a user interface directly due to Session 0 isolation. So you'll need to rethink with a client-server-style separation of service processing from user interface.

The user-mode UI process will start when the user logs in and remain largely idle/hidden. It will establish an inter-process communication connection to the service and await orders in client-server fashion. If the server wants to "push" some kind of an alert to the client, it does so by notifying the user-mode application to display the user interface on its behalf.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wyck