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. Visual Basic
  4. Windows Service

Windows Service

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studioquestion
5 Posts 3 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.
  • K Offline
    K Offline
    KenBonny
    wrote on last edited by
    #1

    I have to make an installer for a Windows service with a Visual Studio installation project. But the guy who made the service (not me), just gave me the compiled .dll and .exe that is required. Now, everywhere I see, I have to compile the webservice with an installer class specifying the name. Is there another way to install windows services without this installer class? Like running the InstallUtil.exe from code with the location of the .exe as a parameter? (Tried that, doesn't work at the moment. No idea why.) Any other ideas?

    D L 2 Replies Last reply
    0
    • K KenBonny

      I have to make an installer for a Windows service with a Visual Studio installation project. But the guy who made the service (not me), just gave me the compiled .dll and .exe that is required. Now, everywhere I see, I have to compile the webservice with an installer class specifying the name. Is there another way to install windows services without this installer class? Like running the InstallUtil.exe from code with the location of the .exe as a parameter? (Tried that, doesn't work at the moment. No idea why.) Any other ideas?

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

      How to manually install a windows service[^] :)

      Dave Find Me On: Web|Facebook|Twitter|LinkedIn


      Folding Stats: Team CodeProject

      K 1 Reply Last reply
      0
      • D DaveAuld

        How to manually install a windows service[^] :)

        Dave Find Me On: Web|Facebook|Twitter|LinkedIn


        Folding Stats: Team CodeProject

        K Offline
        K Offline
        KenBonny
        wrote on last edited by
        #3

        Hmmm, I can use the sc command in code... I think. Thanks! EDIT: It worked. You can add and delete a windows service with:

        Const ServiceName = "Name"
        strPathService = My.Settings("path")

        Shell(String.Format("sc create {0} binpath= ""{1}"" start= auto displayname= {0}", ServiceName, strPathService), AppWinStyle.NormalFocus, True)

        modified on Monday, July 11, 2011 3:13 AM

        1 Reply Last reply
        0
        • K KenBonny

          I have to make an installer for a Windows service with a Visual Studio installation project. But the guy who made the service (not me), just gave me the compiled .dll and .exe that is required. Now, everywhere I see, I have to compile the webservice with an installer class specifying the name. Is there another way to install windows services without this installer class? Like running the InstallUtil.exe from code with the location of the .exe as a parameter? (Tried that, doesn't work at the moment. No idea why.) Any other ideas?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          KenBonny wrote:

          But the guy who made the service (not me), just gave me the compiled .dll and .exe that is required.

          Did he use a code-obfuscator? :)

          Bastard Programmer from Hell :suss:

          K 1 Reply Last reply
          0
          • L Lost User

            KenBonny wrote:

            But the guy who made the service (not me), just gave me the compiled .dll and .exe that is required.

            Did he use a code-obfuscator? :)

            Bastard Programmer from Hell :suss:

            K Offline
            K Offline
            KenBonny
            wrote on last edited by
            #5

            Yes. (I had thought of decompiling the code and doing it myself, but all dll's that are shipped to clients, must be obfuscated.)

            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