سؤال

Am working on Creating windows service and launching an exe application through this,

from this link i have created a windows service Windows Service

But when i create a setup and deployment and then if i install, the exe which am calling from the service is launched as LOCAL SERVICE.

Still i can the xxx.exe in task manager as LOCAL SERVICE.

I cant figure even with this help : Launching GUI from windows service

How can i launch this exe as the local username which i have logged in ?

هل كانت مفيدة؟

المحلول

You have a number of options for creating a process that runs under a different user from the parent process:

However, if you want the process that you create to appear on the interactive desktop, you need to do quite a bit of work. This article covers the details: Launching an interactive process from Windows Service in Windows Vista and later.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top