I have confusing situation. So: I have a big server application on a server which restarts every morning. There is a scheduled task created which will runs a .exe of the server application after the machine has started up. The problem I am getting is that the server application runs in as a process, but I cannot display GUI for it. Now the only way to display GUI is through a system tray icon which appears only if i start up the program by double clicking the .exe file.
Could any one explain to me why the system tray appears if I manually start the program, but does not if the program is started by a scheduled task? Or how could I make the GUI to be usable when it is started from the scheduled task.