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 3424798
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:31:03+00:00 2026-05-18T06:31:03+00:00

I just created a new windows service and I am having issues with the

  • 0

I just created a new windows service and I am having issues with the installer.

I created the installer via this tutorial: http://www.sarin.mobi/2008/08/c-windows-service-visual-studio-2008/

Anyway, when I run the .msi generated by VS, the executable for this project is installed where I expect it to be. However, the service does not appear in Windows Services.

When I use the VS command line tool and installutil, everything works just fine.

I have created services in the past, so I compared the ProjectInstaller files and the installer configuration with past projects and see no significant differences.

Any advice?

  • 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-05-18T06:31:04+00:00Added an answer on May 18, 2026 at 6:31 am

    To install a service, you need to add a ServiceInstaller and a ServiceProcessInstaller to the service project, then add custom actions to the installer to run them. I’m pretty sure it’s the custom actions part you’re missing.

    1. Create a new Windows Service project
    2. Double-click on the .svc file to open the designer.
    3. Right-click on the design surface and pick ‘Create Installer’. This will create one of each.
    4. Set the properties… key props are:
      • ServiceInstaller: Name and Startup Type
      • ServiceProcessInstaller: Account to run under.
    5. Create your setup project
    6. Right-click on the setup project and pick Add -> Project Output
    7. Pick the service project from the drop-down and pick ‘Primary Output’
    8. Right-click on the setup project and pick View -> Custom Actions
    9. Right-click on the Custom Actions tree that appears and pick Add Custom Action
    10. Pick ‘Application Folder’
    11. Pick ‘Primary Output From Service’
    12. Click ‘Ok’. Four actions will be added, one under each Install Action

    Now when you build the installer and execute it, the installers you’ve created in step 3 will be executed, adding your service and setting all properties.

    HTH,
    James

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

Sidebar

Related Questions

I am new to C# and I just created a Windows Service that writes
I just installed ruby on rails on windows. install mysql and created a new
I have created a windows service which is currently having three timers. First timer
I have an windows service that monitors a folder for new files being created.when
I've created a Windows Communication Foundation service (the appDomain in this case is a
I just created a new table and filled it with data. When I run
I just created a new rails app in Rails 3.1.1, and my application layout
I just created a new project using the visual studio cordova starter template. However
I've just created a new view based application, and now I want to set
I have just created a new project in VS2010 using the Visual c# >

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.