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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:15:06+00:00 2026-05-31T08:15:06+00:00

I am using a self-installing variant to install my windows service. That means I

  • 0

I am using a self-installing variant to install my windows service. That means I run the exe that makes up the service, and when run it installs itself using the following line of code:

ManagedInstallerClass.InstallHelper(new[] { Assembly.GetExecutingAssembly().Location });

This works fine, and the service gets added to the list of services. My only problem is that this service gets added with Log On As equal to Network Service. I am doing certain operations from this service that require it to log on as Local System.

How can I make it install itself to run as Local System instead of Network Service?

  • 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-31T08:15:07+00:00Added an answer on May 31, 2026 at 8:15 am

    I think you are using ServiceProcessInstaller. If so, you can set ServiceAccount.LocalSystem to its Account property

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

Sidebar

Related Questions

How do I create a self-signed certificate for code signing using the Windows SDK?
How can I self-sign an iPhone application using Xcode? I have done the following:
I have a modal view controller that is displayed using: [self presentModalViewController:addStoryItem animated:YES]; on
I have a view controller that was presented using [self presentModalViewController:myVC animated:YES]; this VC
I'm using [self retain] to hold an object itself, and [self release] to free
I'm using self-tracking entities in a WCF client-server application. My WCF service returns various
this is the code I'm using: self::$DB->prepare($query, $types); when the $query and types are:
I'm a new Python programmer who is having a little trouble using 'self' in
In PHP 5, what is the difference between using self and $this ? When
I'm using VS1010RC with the POCO self tracking T4 templates. In my WCF update

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.