CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    1

    [Question] Windows service not found after install

    I just wrote a core of a windows service, it doesn't really do anything special, it should execute this line every 5 sec

    System.Diagnostics.Trace.Write("Doing something");

    So I create a setup for it, and installed it, but i can't find it under
    My Computer(Right click) -> Manage->services

    I can't find over there but in Control panel -> add/remove programs, it's there. I can uninstall it, i just can't find it or get it do proc.

    Can anyone help me?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: [Question] Windows service not found after install

    You need to create a service installer and install it with the "InstallUtil.exe" utility.

    To create the service installer, open up your project, open the service, right click on the open service and choose 'Add installer'.

    Fill out the properties as appropriate.

    To register your service as a windows service, run InstallUtil <nameofservice>.

    You'll need to modify your setup program to run the 'InstallUtil.exe' tool or use any builtin service registration features.

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: [Question] Windows service not found after install

    The InstallUtil produces quite a lot of logs, check it. The installation process perform rollback if something went wrong, so there can be no evidence of installation failure in the system, just in the log.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

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

Featured