Service do not show in services.msc after install

Ravnø Data 96 Reputation points
2021-03-11T12:16:30.257+00:00

I have programmed a windows service using
Visual Studio 2017, VB, .net Framework 4.8
Added a setup project using Visual Studio Installer
Manually added Primary Output to the four Custom Actions
Built the project.

Install runs successfully - it appears in the ControlPanel, Programs-list

But the service does not appear in services-list ??

Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} votes

Accepted answer
  1. Ravnø Data 96 Reputation points
    2021-03-15T10:56:00.213+00:00

    Read the F****** manual ;-)
    When you do that, you remember til Add Installer, and everything works fine.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2021-03-11T12:56:33.957+00:00

    Maybe you should also register it as a service and start it? For example, some of samples uses ‘myservice install’ or ‘myservice /install’, then ‘myservice start’ or ‘myservice /start’. Do you have some similar command-line parameters?

    Other sample services uses a special installutil command: https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer#install-the-service. Check if this works, then use Services to start and stop the service.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.