For Q2:
The low-level answer would be that if you look in the code for a non-dot net
Windows service (like Winmain/main) there's code that checks specifically
for command line arguments like /Install and /Uninstall.
There's no such code built in to the project template for in a .NET Windows
service whatsoever from what I can tell. So that indirectly answers the
question.
For Q1:
Don't know, but typically it's still a "permission" issue
"Harshad" wrote:
Two questions.
1) I followed Walkthrough of Win Service App. At the end, when I run Setup
it complains about incorrect user and/or password. Where does it look for
userid? I have logged in as Administrator.
2) Why cannot I install the service with ServiceName.exe /install command as
I do for non-dotNet service?
--
Thanks for your help.
Harshad Rathod
--
Thanks for your help.
Harshad Rathod