views:

130

answers:

0

I've created a windows service and a setup and deployment project that I want to use to install the service. I have followed the walkthrough on the MSDN as closely as possible. I've created a custom action for install/commit/rollback/uninstall of type "primary output from ProjectName (Release Any CPU)".

When I install the app, it runs fine and the eventlog says that it installed but it's still not visible in the services mmc.

The settings I've made are:

  • MyProgramInstaller.cs

    • Service Process Installer
      • Account: LocalSystem
    • Service Installer
      • Description: Filled In
      • DisplayName: "My Program"
      • ServiceName: "MyProgram"
      • StartType: Automatic
  • MyProgram.cs

    • Cosntructor:

    this.ServiceName = "MyProgram"; this.CanStop = true; this.AutoLog = true; this.CanPauseAndContinue = true; this.AutoLog = true; this.EventLog.Log = "Application"; this.EventLog.Source = "MyProgram";

    • Main()

    ServiceBase.Run(new MyProgram());

Is there anything I'm missing?

edit I should note that I can successfully install it via installutil.