I am writing a .NET Windows service whose role is to launch a GUI application(whose source is unavailable). The operation is a fire and forget, no communication besides initial command-line parameters.
The service ought to run as a given Windows account.
问题:服务启动的应用程序未显示在桌面上。它需要显示在桌面上,因为它是一个交互应用程序。解决方案是什么?
Note: this is the specification and the design of the system. The typical concerns raised with service/app communication and security do not apply in this specific case.
当使用本地系统帐户登录时,GUI元素会正确显示,但是由于GUI应用程序需要访问网络驱动器(它无法理解UNC映射),因此需要以指定的用户帐户运行,而该用户帐户没有“显示交互元素”的设置。
edit2: The OS is Windows 2003 Server, and there are no plans to upgrade it.