SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Services Control Operations - How to Change Order?

We have 4 services that need to be stopped during update. If I add services control operations for all of these services they are added in alphabetical order (the servicename seems to give the order). The services are stopped exactly in this order. Is there a possibility to change the order?

I have services
a
b
c
d
and want to have e.g.:

b
a
c
d

Is this somehow possible without changing the service name so that service b is stopped before a?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Services Control Operations - How to Change Order?

Hello,

The service control operation added in our "Services" page are completely handled at install time by the Windows Installer services custom actions: StartServices, StopServices, and DeleteServices. Therefore we cannot control the order in which the services are started/stopped/uninstalled.

As a workaround, you can try to edit from our "Table Editor" feature the "ServiceControl"column of the "ServiceControl" table entries. Just go to "Table Editor" page, select the "ServiceControl" table and edit its "ServiceControl" column so that the service control entries be sorted as you need.

Let us know if this worked.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”