dblanchette
Posts: 4
Joined: Thu Mar 13, 2014 2:28 pm

Set an order for services to be started

We just bought Advanced Installer and are working to make a new install kit based on the one we have currently with WiX.

We have several services that are started during our installation process. The installation can not be rollbacked after one specific service has started. For this reason, we do the StartServices action last, but were not able to order the started services in any way (even applying transforms or editing the MSI database programmatically). We finally decided to use custom actions for this service and keep the ServiceControl table for the others, which worked.

I see that it is not possible to change the order services are being started in Advanced Installer and it will be a problem when developing our new install kit.

Would it be possible for Advanced Installer to "trick" Windows installer into starting services in the ServiceControl table in a specific order?

Thank you very much.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Set an order for services to be started

Hello and welcome to Advanced Installer forums,

Thank you for you interest in Advanced Installer.

In order to set the order for services to start, you can add in the Dependencies field from the Service properties the list of the required active services needed before this service starts. Please note that you need to separate the names in the list by [~] (with the brackets).

You can also take a look on the ServiceInstall Table article which may be useful to you.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dblanchette
Posts: 4
Joined: Thu Mar 13, 2014 2:28 pm

Re: Set an order for services to be started

Hello Dan,

Adding the dependency will make the desired service start last, but will also make the dependency in the user's system afterwards. As a side note, I was able to test really fast with Advanced Installer, the same test would have taken hours in WiX.

There is no real dependency between the different services. What we need is that the installation of a specific service be the last thing the install kit will do so that it can not rollback once the service is started.

I knew this would not be possible as is, without using Custom Actions, hence why I posted in the "Feature Requests" forum.

Thank you for the fast reply.
Denis

Return to “Feature Requests”