Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7883751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:37:02+00:00 2026-06-03T04:37:02+00:00

I have a custom windows service written in c# that I need to install

  • 0

I have a custom windows service written in c# that I need to install and debug. When I use

installutil "[path].exe"

from the command line and then try and search for the service, it doesn’t appear in the list of installed services anywhere. Looking at the install log file, i see this:

Installing assembly 'myservice'.   
Affected parameters are:  
   logtoconsole =    
   assemblypath = mypath  
   logfile = mylogfile  
Installing service MyService  
Service MyService has been successfully installed.  
Creating EventLog source MyService in log Application...  
Committing assembly 'myservice'.  
Affected parameters are:  
   logtoconsole =   
   assemblypath = myservice  
   logfile = pathtoinstalllog  
Uninstalling assembly myservice  
Affected parameters are:  
   logtoconsole =   
   assemblypath = myservice   
   logfile = pathtoinstalllog  
Removing EventLog source myservice.  
Service myservice is being removed from the system...  
Service myservice was successfully removed from the system.  
Uninstalling assembly myservice'.  
Affected parameters are:    
   logtoconsole =   
   assemblypath = myservice  
   logfile = pathtoinstalllog  
Removing EventLog source myservice.  
Service myservice is being removed from the system...  
Service myservice was successfully removed from the system.

(The names path, myservice, pathtoinstalllog, etc are in place of company specifics)

Anyway, from the log file it looks as if the service is being installed and then immediately uninstalled…

If any more code or info is needed, let me know, and thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:37:03+00:00Added an answer on June 3, 2026 at 4:37 am

    to sum it up per our discussion…

    • use ‘InstallUtil full-path‘ to your service main output (bin/debug/assembly.exe). Usually if there’s an error InstallUtil ‘performs rollback’ (so watch for errors) – it looks like it’s doing so but your log doesn’t say – so I’m guessing your ‘myservice’ is of wrong path (also pick the right InstallUtil version, .NET framework and 32/64)…

    • for security/account issues – run InstallUtil elevated (‘run as admin’, the command prompt etc.) – (and for additional debugging if needed, try specifying different user/type for your service account, check your installer class details, RunInstaller attribute etc.).

    hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a custom Windows Service that writes data to a custom Event
We have written a custom windows service (VB.NET, .NET Framework 2.0) that takes a
I have an existing (C# based) windows service that is derived from the Installer
i have installed my own custom Windows Service. I need to find out the
I'm having a windows service and a custom console install that should install it
I have a custom windows service, and I'd like to use Quartz .NET to
Greetings! I have developed a Windows Service that seems to install just fine most
I have written a windows service and have created a setup project to install
I have a windows service (.net) that is an implementation of a custom protocol.
I have a windows service that has a custom configuration section. In the configSectionHandler

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.