• Register
0 votes
42 views

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

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 119 views
119 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 morrisBson 3.2k points
1 vote
1 answer 594 views
594 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
2 answers 29 views
29 views
Problem: What would you enter at the command prompt to start a new Bourne-again shell (bash) session?
asked Apr 18 ArifulIslam 5.7k points
0 votes
1 answer 43 views
43 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
1 answer 31 views
31 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