Cannot install service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
Try using the InstallUtil.exe. The .NET Framework uses this utility to
install/uninstall Windows Services for .NET.
 
Back
Top