Windows Service not appearing in services list after install

后端 未结 9 1438
刺人心
刺人心 2020-11-30 20:06

I\'ve created a windows service in C#, using Visual Studio 2008 I pretty much followed this: http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx

I created

9条回答
  •  青春惊慌失措
    2020-11-30 20:22

    I had this same issue and then I realized that I never set the parent for the ServiceInstaller.

    Double-click on your project installer. The designer should show a Service Installer and Process Installer. When you click on either and view the properties you should note the Parent attribute which must both be set to the class name of the Project Installer.

    Or, if you do it in code, make sure you set:

    serviceInstaller.Parent = this;
    

    and

    serviceProcessInstaller.Parent = this;
    

提交回复
热议问题