• Register
0 votes
193 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

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

0 votes
1 answer 2 views
2 views
Problem: I have written and am maintaining a number of Wix installation source files which I use to build MSI files for distribution of my application. I have not explicitly programmed for any kind of upgrading, updating, reinstallation or anything of the kind - ... "-dAPPPATH=%apppath%" "-dPRODUCT_VERSION=%version%" -out %TEMP%\foobar-%version%.msi %TEMP%\foobar.wixobj (using Wix 3.11.1.2318)
asked Apr 25 Yeamin 22k points
0 votes
1 answer 2 views
2 views
Problem: I just keep getting > The service did not respond to the start or control request in a timely fashion.
asked Apr 26 ummeshani 10.8k points
0 votes
1 answer 6 views
6 views
Problem: I want to debug a Windows service but it pops an error message saying Cannot start service from the command line or a debugger. A windows service must be installed using installutil.exe and then started with the Server explorer, windows services Administrative tools or the NET start command. I don't really have any idea about this error.....
asked Apr 23 ochena 23.3k points
0 votes
1 answer 7 views
7 views
Problem: I have created and installed a service a couple of times. Initially it was working fine, but after some changes in the service Code it start giving the error when I restart the service in Services.msc : Error 1053: the service did not respond to the start or control request in a timely fashion
asked Mar 20 ummesalma 29.2k points
1 vote
1 answer 780 views
780 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 11 views
11 views
Problem: After debugging and installing windows service in windows 8 I have an error when I try to start a windows service:"The Windows could not start service on local computer Error 5 Access is denied"
asked Mar 8 ummesalma 29.2k points
0 votes
0 answers 5 views
5 views
Problem: I'm running R 2.15.1 on a MacBook Pro running Windows XP on a bootcamp partition. I tried to load my R workspace and received this error: Error: bad restore file magic number (file may be corrupted) -- no data loaded In addition: ... file WORKSPACE_Wedding_Weekend_September' has magic number '#gets' Use of save versions prior to 2 is deprecated Why is this error occurred in my pc.
asked Apr 25 nabin shrestha 4.3k points
0 votes
1 answer 5 views
5 views
Problem: I created an installer with WiX and the installation process worked. Then I started working on the uninstall, so I created a bat file that deletes the folders created. However I got this error, "There is a problem with this windows installer package. a program required for this install to complete could not be run " How can I fix the problem ?
asked Apr 30 salim1 60.6k points
0 votes
1 answer 7 views
7 views
Problem: I have an MSI installer built with Wix. It does not require elevated privileges, having ALLUSERS=2 and MSIINSTALLPERUSER=1. It works fine in the user unteractive mode, but fails when launched from a non-elevated command prompt in the silent (/qn) or passive ( ... than per-user. Again, this does not happen if it was installed in the user-interactive mode. Any help will be much appreciated.
asked Apr 24 Humaira ahmed 50.7k points
0 votes
1 answer 5 views
5 views
Problem: I created an installer with WiX and the installation process worked. Then I started working on the uninstall, so I created a bat file that deletes the folders created. However I got this error : "There is a problem with this windows installer package. a program ... code when it works but I still get the same problem. I deleted the files created but there must ba something I am missing.
asked Apr 24 munim01 21k points