Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Service Start: Automatic (delayed)

Windows has the possibility to start the service with a delay.
I didn't find the to select Automatic (delayed) from the AI 14.3 Services tab.

We have to set our service to delayed, only if SQL Server is on localhost. Can we touch some property for this?
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Service Start: Automatic (delayed)

Hello,

You could implement this by going to "Services" page and adding a new "Configure Operation" configured as follows:

"Service name" : Your service name
"Setting To Change" : "Time delay of an auto-start service
"Value" : 1

This will ensure the startup type for your service will be "Automatic (Delayed start)"

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
psimard
Posts: 24
Joined: Tue Apr 24, 2018 8:03 pm

Re: Service Start: Automatic (delayed)

this does not work for me
service still shows as automatic startup

I am configuring the service in a Merge Module

I am setting the attached service to the service binary

documentation for this is extremely limited and no use case or complete example is given


Peter
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Service Start: Automatic (delayed)

Hello Peter,

We apologize for the delayed answer.

I have tested the scenario and can replicate the behavior with a merge module created by Advanced Installer. This seems to be an Advanced Installer issue indeed. A fix will be available in the future, thank you for bringing this to our attention.

As soon as the fix will be out we will notify you. Until then, as a workaround you can proceed like this:

1. open your merge module project (AIP file) in Advanced Installer
2. go to "Table Editor" page and select the "ModuleInstallExecuteSequence" table
3. add a new row like this:
  • Action: MsiConfigureServices
    Sequence: 5825
    BaseAction:
    After:
    Condition: VersionNT
4. save and rebuild the MSM project and so the setup project including the MSM

This should work as expected.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Service Start: Automatic (delayed)

Hello,

This was fixed in version 15.4 of Advanced Installer released on October 17, 2018.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”