Windows service in svchost vs self-container service
I plan to install a service but quite confuse what the diffe开发者_C百科rence between both as a process in svchost or software.exe.
I would go for a separate exe, but that's just my opinion. It's really entirely up to you. Nothing in regards to functionality, performance, development time etc will be any different.
There's nothing wrong with running it as a service through svchost though. SvcHost was implemented by Microsoft because they want to make the code-base more reusable. The goal is to have the reusable code in dlls instead of smashing it into exe files. But because a dll is not an executable, it can not be started directly. Hence, they made svchost as a runner for it.
the difference is of the User Name You can run run your application as
UserName or Administrator
精彩评论