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. windows service

windows service

Scheduled Pinned Locked Moved C#
questioncsharpdotnetworkspace
9 Posts 4 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.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    Hi, I have developed a windows sservice on my dev machine. The project installer is also created. This service is tested on my machine and it is fine. Now I would like to give it to the management to install/run it on the required machine. Question: How should this windows service application be setup on the requred machine which may or may not have .net framework? Thanks

    J 1 Reply Last reply
    0
    • A arkiboys

      Hi, I have developed a windows sservice on my dev machine. The project installer is also created. This service is tested on my machine and it is fine. Now I would like to give it to the management to install/run it on the required machine. Question: How should this windows service application be setup on the requred machine which may or may not have .net framework? Thanks

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      if(!TargetMachineHasDotNetFramework)
      {
      InstallRequiredDotNetFramework();
      }
      InstallWindowsService();

      well, you did ask in the C# forum.

      A 1 Reply Last reply
      0
      • J J4amieC

        if(!TargetMachineHasDotNetFramework)
        {
        InstallRequiredDotNetFramework();
        }
        InstallWindowsService();

        well, you did ask in the C# forum.

        A Offline
        A Offline
        arkiboys
        wrote on last edited by
        #3

        I think you mis-understood. I would like to know how to install the windows service on another machine? I mean do I just copy the whole development codes to the other machine, etc? Thanks

        J 1 Reply Last reply
        0
        • A arkiboys

          I think you mis-understood. I would like to know how to install the windows service on another machine? I mean do I just copy the whole development codes to the other machine, etc? Thanks

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          You said you had an installer for your service, wouldn't logic tell you to install your service you would use the installer?

          A 1 Reply Last reply
          0
          • J J4amieC

            You said you had an installer for your service, wouldn't logic tell you to install your service you would use the installer?

            A Offline
            A Offline
            arkiboys
            wrote on last edited by
            #5

            On my machine which has visual studio, I run the vs command to install or un-install the service. The question is: What do I do if this service needs to be installed on another machine? If the installer is required for this purpose, then how do I run it on another machine. I believe I can not get vs command on the other machine. Hope you follow my question. Thanks

            J W 2 Replies Last reply
            0
            • A arkiboys

              On my machine which has visual studio, I run the vs command to install or un-install the service. The question is: What do I do if this service needs to be installed on another machine? If the installer is required for this purpose, then how do I run it on another machine. I believe I can not get vs command on the other machine. Hope you follow my question. Thanks

              J Offline
              J Offline
              J4amieC
              wrote on last edited by
              #6

              arkiboys wrote:

              What do I do if this service needs to be installed on another machine

              Easiest way is to create an installer, take that installer to the other machine and run it. A Google search[^] will provide you with a plethora of information on the subject.

              1 Reply Last reply
              0
              • A arkiboys

                On my machine which has visual studio, I run the vs command to install or un-install the service. The question is: What do I do if this service needs to be installed on another machine? If the installer is required for this purpose, then how do I run it on another machine. I believe I can not get vs command on the other machine. Hope you follow my question. Thanks

                W Offline
                W Offline
                wurzel_cidermaker
                wrote on last edited by
                #7

                To install the Windows Service on another machine you would add a Setup project to your solution which would then create an MSI package. Run the MSI package on the target machine and this will create the Windows Service. Obviously you would need the relevant .NET Framework version on the target machine.

                A 1 Reply Last reply
                0
                • W wurzel_cidermaker

                  To install the Windows Service on another machine you would add a Setup project to your solution which would then create an MSI package. Run the MSI package on the target machine and this will create the Windows Service. Obviously you would need the relevant .NET Framework version on the target machine.

                  A Offline
                  A Offline
                  arkiboys
                  wrote on last edited by
                  #8

                  Can I do this by the click once method to install the service on another machine? Thanks

                  L 1 Reply Last reply
                  0
                  • A arkiboys

                    Can I do this by the click once method to install the service on another machine? Thanks

                    L Offline
                    L Offline
                    leppie
                    wrote on last edited by
                    #9

                    I highly doubt ClickOnce will work for services :)

                    xacc.ide - now with TabsToSpaces support
                    IronScheme - 1.0 alpha 4a out now (29 May 2008)

                    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