When are installed services started ? - Advanced Installer Community
Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

When are installed services started ?

It seems somewhere *before* the installation finishes.
But when, and can we control that ?

Many thanks,
Ruben
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: When are installed services started ?

Hi Ruben,

The services are started by the "StartServices" standard action that belongs to the "Add Resources" action group from the "Custom Actions" page (you can see it if you right-click on that group and select the "Show Standard Action" option).

You can set that standard action not to be executed anymore, however setting it to be executed earlier or later is not quite possible. Can you tell me why do you need this, so I can think of a better solution?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Re: When are installed services started ?

We install a service that can start properly only after a custom action is completed.

That relevant custom action is a "Lauch File" action under install execution stage, Execution time deferred.

Many thanks for any good idea,
Ruben
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: When are installed services started ?

Hi Ruben,

In order for your custom action to be executed before the service is started, you can select the "Move" button that is displayed at the right of it, then place it after the "Add Resources -> InstallFiles" standard action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

SOLVED Re: When are installed services started ?

* THAT WORKED *

(Strictly speaking, my question was simplifying. We had to move two custom actions there, and we moved it after "Write Registry" because our service also relies on registry values. But it worked exacly the way you told me.)

I like to suggest improving the UI here. I've never been aware the "Add Resources" standard action has finer granularity.
That's visible only when moving an action around. Finally, the custom action still appears below "Add Resources" in the Install Execution stage, althought it is scheduled somewhere inside "Add Resources".

- Thank you very much ! -
Ruben
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: When are installed services started ?

You're welcome Ruben. I'm glad you got this working.

Will will consider your improvement suggestion, thank you.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”