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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. windows service installation

windows service installation

Scheduled Pinned Locked Moved C#
help
8 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.
  • N Offline
    N Offline
    NarendraSinghJTV
    wrote on last edited by
    #1

    hey everybody i m created a window application and a windows service now i want to automatically install the service at the time of application installation by adding the installation process of service within application installation, i have tried on net also but i m not able to find any solution, can anybody help thanks for your responses

    E 1 Reply Last reply
    0
    • N NarendraSinghJTV

      hey everybody i m created a window application and a windows service now i want to automatically install the service at the time of application installation by adding the installation process of service within application installation, i have tried on net also but i m not able to find any solution, can anybody help thanks for your responses

      E Offline
      E Offline
      Eduard Keilholz
      wrote on last edited by
      #2

      Open the windows service in design view and right click... Choose 'Add Installer' and you're done. Change the properties of the components automaticly added and you're good to go!

      .: I love it when a plan comes together :. http://www.zonderpunt.nl

      N 1 Reply Last reply
      0
      • E Eduard Keilholz

        Open the windows service in design view and right click... Choose 'Add Installer' and you're done. Change the properties of the components automaticly added and you're good to go!

        .: I love it when a plan comes together :. http://www.zonderpunt.nl

        N Offline
        N Offline
        NarendraSinghJTV
        wrote on last edited by
        #3

        there is no need for any coading??????

        E 1 Reply Last reply
        0
        • N NarendraSinghJTV

          there is no need for any coading??????

          E Offline
          E Offline
          Eduard Keilholz
          wrote on last edited by
          #4

          Nope...

          .: I love it when a plan comes together :. http://www.zonderpunt.nl

          N 1 Reply Last reply
          0
          • E Eduard Keilholz

            Nope...

            .: I love it when a plan comes together :. http://www.zonderpunt.nl

            N Offline
            N Offline
            NarendraSinghJTV
            wrote on last edited by
            #5

            i tried it but its not working can u please elaborate your answer

            E 1 Reply Last reply
            0
            • N NarendraSinghJTV

              i tried it but its not working can u please elaborate your answer

              E Offline
              E Offline
              Eduard Keilholz
              wrote on last edited by
              #6

              So... You have a Windows Service... You've added an installer (creating two components in design view) and you've added a setup project to your solution... You've added the project output to the setup Did I mention to add the project's output in the actions window aswell? Right-click the setup project and open the custom actions window. Add the service's project output to the Install and Uninstall folder as well.. You should now be OK.

              .: I love it when a plan comes together :. http://www.zonderpunt.nl

              N 2 Replies Last reply
              0
              • E Eduard Keilholz

                So... You have a Windows Service... You've added an installer (creating two components in design view) and you've added a setup project to your solution... You've added the project output to the setup Did I mention to add the project's output in the actions window aswell? Right-click the setup project and open the custom actions window. Add the service's project output to the Install and Uninstall folder as well.. You should now be OK.

                .: I love it when a plan comes together :. http://www.zonderpunt.nl

                N Offline
                N Offline
                NarendraSinghJTV
                wrote on last edited by
                #7

                thanks for ur very valuable response just want to know only one thing i have to add service output in custom action if i read ur response right because i have two project output one from window application and one from windows service

                modified on Tuesday, November 17, 2009 8:56 AM

                1 Reply Last reply
                0
                • E Eduard Keilholz

                  So... You have a Windows Service... You've added an installer (creating two components in design view) and you've added a setup project to your solution... You've added the project output to the setup Did I mention to add the project's output in the actions window aswell? Right-click the setup project and open the custom actions window. Add the service's project output to the Install and Uninstall folder as well.. You should now be OK.

                  .: I love it when a plan comes together :. http://www.zonderpunt.nl

                  N Offline
                  N Offline
                  NarendraSinghJTV
                  wrote on last edited by
                  #8

                  hey eduard with the help of ur response i have installed my application n service both, but when i start my service it is givinf following message and stops "the service on local computer started and stopped. Some services stop automatically if they have no work to do for example the performance logs and alert services" can u help me with this thanks for responses regards narendra singh

                  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