I cannot create a service as Local Service - Advanced Installer Community
Electivire18
Posts: 1
Joined: Thu Dec 29, 2022 1:34 am

I cannot create a service as Local Service

I am attempting something very simple, to install a program and create a service to run it on startup.

I am performing the following steps:

1. Create blank project
2. Add name of project and company
3. Install Parameters > Run as Administrator
4. Services > Right click on Services to Install > Add my exe
5. Build

I have tried using all sorts of Usernames, such as:

Image

But I get the same error every time:

"Verify that you have sufficient privileges to start system services"
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: I cannot create a service as Local Service

Hello and welcome to our forums,

I have done some tests and, first of all, the input you have used in the "Username" field is indeed correct. That is how you should input the "LocalService" account.

Now, after testing this, I have noticed the same behavior as you. The issue is not creating your service, but starting it.

If you go to "Services" page --> under "Control Operations" --> disable "On install - Start" you will see that no errors are encountered.

If you open Service Manager and check for your service, you will see that it is installed, but not started. If you try to manually start it, it will probably fail or say something similar to: "the service has started but was immediately stopped".

There must be something we are missing here - most likely not related to Advanced Installer but rather a setting/policy. I will try to further investigate this tomorrow and will update this thread.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”