RPK200269: How to Create a Service with Delayed Automatic Startup

Since automatically starting a service with a delay is not supported due to a missing function in Windows Installer, it is necessary to use a workaround to create a service with a delayed and automated startup.

There are currently two different possible ways to achieve this:


Variant 1

Start a Custom Action which changes the type to a correct one. This Custom Action should have a syntax that is similar to the following: 

sc config <service-name> start= delayed-auto


Variant 2

Add the following entry to your registry:


By using this variant the service will also be configured properly. 

Please note, that instead of <service-name> you need to use the name from your installer, exactly as defined in the ServiceInstall table.



Powered by Zendesk