I tried to follow the tutorial for creating a Windows Service Installer but it fails when executing I think it's because the sc.exe create ".NET Joke Service" command has to be run in a console as Administrator, but I'm not sure, the error message don't give details.
I Tried run the command ".\App.WindowsService.exe /Install" as administrator and worked fine.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 100180
I tried to follow the tutorial for creating a Windows Service Installer but it fails when executing I think it's because the
sc.exe create ".NET Joke Service"command has to be run in a console as Administrator, but I'm not sure, the error message don't give details.I Tried run the command ".\App.WindowsService.exe /Install" as administrator and worked fine.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
Associated WorkItem - 100180