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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:50:08+00:00 2026-06-05T09:50:08+00:00

Trying to Install a service onto a server, currently running under .Net Framework 2.0

  • 0

Trying to Install a service onto a server, currently running under .Net Framework 2.0 . When I run the .MSI file from the setup project everything is copied over however when I check under the SMC, the service is not there. Also, when I try to use InstallUtil to install the service I’m prompted with No public installers with the RunInstallerAtrribute.Yes attribute could be found in the assembly. When I check my ProjectInstaller.cs everything looks ok. Also, I’m able to install fine on my computer and I have admin privileges on both the server and my box.

Here is the ProjectInstaller.cs file

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;


namespace MyService
{
    [RunInstaller(true)]
    public partial class ProjectInstaller : Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();
        }
    }
}

Edit: Server is currently running Windows 2003 R2 Service pack two.
Personal computer is running Windows 7 and Visual Studios 2010

  • 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-05T09:50:10+00:00Added an answer on June 5, 2026 at 9:50 am

    Here’s a sample of some code that installs a service:

    [RunInstaller(true)]
    public class InstallMyService : Installer
    {
        public InstallMyService()
        {
            var svc = new ServiceInstaller();
    
            svc.ServiceName = "MyService";
            svc.Description = "This is a service";
            svc.DisplayName = "My Service";
            svc.StartType = ServiceStartMode.Automatic;
    
            var svcContext = new ServiceProcessInstaller();
            svcContext.Account = ServiceAccount.LocalSystem;
    
            Installers.Add(svc);
            Installers.Add(svcContext);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to determine why a .Net service that I can successfully install
I'm trying to install my Windows Service app using Visual Studio 2008 Setup and
I am currently trying to install MySQL Server 5.5 on Windows XP Professional. The
I am on win 7 and trying to install a .NET windows service using
I'm trying to install a .NET service I wrote. As recommended by MSDN, I'm
I'm trying to install a Windows Service using a batch file, let's call it
I am trying to install a windows service from Power-shell as follows. $sn =
I am trying to detect .net framework 2.0 service pack 2. But it seems
When trying to install my 32bit service on a Windows 64bit machine my installer
I am trying to install a windows service using MSBuild and CCNET. I am

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.