Results 1 to 9 of 9

Thread: Insalling a Service

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Location
    Indiana
    Posts
    451

    Question Insalling a Service

    I am installing a service and it won't start. When I use the command prompt to net start servicename it says that the service can't be found or the name isn't recognized. I am using INNO to install. I have never installed a service before, do I need to register it or anything?

  2. #2
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: Insalling a Service

    You use InstallUtil.exe from a command window. There's a way to add it to your deployment package (in .Net anyway), but I'd have to find the link on how to do that again.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Location
    Indiana
    Posts
    451

    Re: Insalling a Service

    I am using VB6 to program in, and INNO to install the files.

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Insalling a Service

    Krenshau,

    The installation of a service is contained in your app. How did you achieve this?

  5. #5
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Insalling a Service

    Setup will only install the EXE on the system, it is your responsibility to run exename -install on the command prompt before you could use the service. Open command prompt, go to the folder where the EXE is located and then type this and press enter
    Code:
    yourexename -install
    This will install the exe as a Service, now you can start the service from the command prompt or service control manager.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Insalling a Service

    Quote Originally Posted by Shuja Ali
    Setup will only install the EXE on the system, it is your responsibility to run exename -install on the command prompt before you could use the service.
    Shuja Ali,

    Incorrect, Inno will run another program while it installs the first.

  7. #7
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Insalling a Service

    Quote Originally Posted by randem
    Shuja Ali,

    Incorrect, Inno will run another program while it installs the first.
    So does that mean that Inno will install the EXE as a service too after finishing installing the program?

    I don't use Inno, however the PDW program does not do it on its own, you have to customize it before you can actually use it for installing the services.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Insalling a Service

    Shuja Ali,

    Yes, Inno Setup will do that and much more. If you decide to look at Inno Setup, also look at the third party tools for it. Check my signature for both.

  9. #9
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Insalling a Service

    I will definetly take a look at Inno sometime soon.

    In the meantime let us see whether OP has been able to resolve the problem or not?
    Use [code] source code here[/code] tags when you post source code.

    My Articles

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width