문제

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