Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Installation of windows service ?????

Installation of windows service ?????

Scheduled Pinned Locked Moved C#
csharphelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saaaaz
    wrote on last edited by
    #1

    Hi there, I have written a basic windows service that creates a text file and write some data in it. I have also written a windows service installer for that. Now when I try to install it by using installutil (c:\windows\microsoft.net\framework\v2.0.50727), I get the following error message: No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\...\windowsservice.exe assembly. Remove InstallState file because there are no installers. Can someone tell me why is that so?????????? Thanks. Sarfraz

    D 1 Reply Last reply
    0
    • S Saaaaz

      Hi there, I have written a basic windows service that creates a text file and write some data in it. I have also written a windows service installer for that. Now when I try to install it by using installutil (c:\windows\microsoft.net\framework\v2.0.50727), I get the following error message: No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\...\windowsservice.exe assembly. Remove InstallState file because there are no installers. Can someone tell me why is that so?????????? Thanks. Sarfraz

      D Offline
      D Offline
      DavidAtAscent
      wrote on last edited by
      #2

      Hi, Have you generated the ProjectInstaller class? It should look something like: [RunInstaller(true)] public class ProjectInstaller : System.Configuration.Install.Installer { ... } Regards David

      S 1 Reply Last reply
      0
      • D DavidAtAscent

        Hi, Have you generated the ProjectInstaller class? It should look something like: [RunInstaller(true)] public class ProjectInstaller : System.Configuration.Install.Installer { ... } Regards David

        S Offline
        S Offline
        Saaaaz
        wrote on last edited by
        #3

        Thanks for your reply Yes, I did write this class, as I have mentioned in my question. The problem is somewhere else but I don't know where... Sarfraz

        S 1 Reply Last reply
        0
        • S Saaaaz

          Thanks for your reply Yes, I did write this class, as I have mentioned in my question. The problem is somewhere else but I don't know where... Sarfraz

          S Offline
          S Offline
          Saaaaz
          wrote on last edited by
          #4

          Now I know, what was the problem. I actually did not make windows-service-installer class public !!! Thanks Sarfraz

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups