• Register
0 votes

Problem :

I am trying to install Windows services on my box but I found that there are two different options for automatically starting the Windows service on the Windows startup. First option is Automatic, and Second option is Automatic (Delayed start).

So my doubt is as follows:

What is the difference between “Automatic” and “Automatic (Delayed start)” in detail?

e.g. If you are trying to create the installer with the wix tool set. And the ServiceConfig element there has the DelayedAutoStart attribute. So how will that affect when the services are started at boot time?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

In short I can tell you the difference between the two services as follows:

1.  The services which are set to Automatic will start during the boot process itself.

2.  The services which are set to start as Delayed will start shortly after the boot.

So “shortly after boot" it means 2 minutes after your last "automatic" service has started, by default. This can be achieved by configuring with the use of registry key.

The registry keys are as below :

·   HKLM\SYSTEM\CurrentControlSet\services\<service name>\DelayedAutostart:-It will have the value as 1 if delayed and as 0 if not delayed.

·   HKLM\SYSTEM\CurrentControlSet\services\AutoStartDelay or HKLM\SYSTEM\CurrentControlSet\Control\AutoStartDelay (for Win 10): Here the decimal number of seconds to wait are needed to create this one and it applies globally to all Delayed services.

9 7 4
38,600 points

Related questions

1 vote
1 answer 422 views
Problem : I am very new to C#. I am trying to execute my code related to windows service but I am unable to execute the code I am facing below error. Cannot start service from the command line or debugger. A winwows Service must first be installed(using installutil. ... looking for expert advice on fixing above error as I have already spent a lot of time in fixing it but with no positive results.
asked Apr 10, 2020 morrisBson 3.2k points
0 votes
1 answer 2 views
Problem: retrieving the com class factory for component with clsid.
asked 1 day ago Ethan ross 1.8k points
1 vote
1 answer 938 views
Problem : Whenever I create the new Windows Service in my Visual Studio 2010, I often face the message stating to use the InstallUtil and after that net start to run the service. I have tried the below steps: 1. I created the new project File -> New -> ... Ran the net start MyTestService. The Output of my step 5 The service name is invalid.More help is available by typing NET HELPMSG 2185.
asked Dec 30, 2019 alecxe 7.5k points
0 votes
1 answer 49 views
Problem : After the execution of my wix package from the bundle outputs the following error : "Product: avast update helper -- error 1316. the specified account already exists. . How can the windows installer output such error code? I have tried to do the ... our new version of current msi package. The product code and the filename between the original msi package and the update are unchanged.
asked Dec 23, 2019 alecxe 7.5k points
0 votes
2 answers 56 views
Problem: What would you enter at the command prompt to start a new Bourne-again shell (bash) session?
asked Apr 18, 2020 ArifulIslam 7.5k points
0 votes
1 answer 27 views
I am new to this. I just want to know how to do that ?
asked Nov 4, 2020 TeamScript 13.5k points
0 votes
1 answer 80 views
Problem : How can the following error message be solved? a footer of section 1 is set outside the printable area of the page. do you want to continue?
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 51 views
Problem : I came across a problem as follows if you set the autopostback property of a control to true, the page is posted back to the server Any solution on this ?
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 20 views
Problem: Can anyone guide me what format to use when i have to display working of database on screen? The display format that you choose when working with a database object on the screen?
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 22 views