[wix-users] Ordering Service Stop

Edwin Castro egcastr at gmail.com
Fri Sep 2 17:31:09 PDT 2022


Makes sense. :-(

--
Edwin G. Castro

On Fri, Sep 2, 2022 at 5:27 PM Bob Arnson <bob at firegiant.com> wrote:

> Unless the table defines order somehow (e.g., Control_Next, Sequence,
> Ordering), the order MSI processes rows is undefined. MSI can rely on
> natural row order or use an internal order. (WiX doesn't define natural row
> order in the output either, especially when you consider extensions and
> wixlibs.)
>
> > -----Original Message-----
> > From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> > Edwin Castro via wix-users
> > Sent: Friday, 2 September, 2022 20:06
> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > Cc: Edwin Castro <egcastr at gmail.com>
> > Subject: Re: [wix-users] Ordering Service Stop
> >
> > Thanks for the suggestion but in my experience, at least on the Win 10
> test
> > VM, StopServices appears to stop services in the order of the service
> Name
> > or perhaps the order in which the rows appear in the ServiceControl table
> > (perhaps more likely). I need to confirm but it looks like perhaps their
> order
> > in the wxs source may be a contributing factor in their order in the
> table.
> >
> > --
> > Edwin G. Castro
> >
> >
> > On Fri, Sep 2, 2022 at 7:58 AM Horr, Joe via wix-users < wix-
> > users at lists.wixtoolset.org> wrote:
> >
> > > We have a similar scenario with one of our packages where we need
> > > services to stop in a particular order yet don't want to set Windows
> > > Service dependencies between them. I discovered that the MSI will
> > > create the Service Control table in alphabetical order of the
> > > ServiceControl ID name, thus stopping and starting the services in
> > > that order. Using this, you can control the order in the generated
> > > installer by naming the ServiceControl IDs in alphabetic order of the
> way
> > you want them stopped and started.
> > > I use "a_", "b_", etc. in front of the existing ServiceControl ID
> > > names to ensure their order in the Service Control MSI table and it
> > > works great for us.
> > >
> > > Joe Horr
> > > Bonum est Lardo
> > >
> > >
> > > -----Original Message-----
> > > From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of
> > > Racheli Ganon via wix-users
> > > Sent: Friday, September 2, 2022 9:22 AM
> > > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> > > Cc: Racheli Ganon <r05458410430 at gmail.com>
> > > Subject: Re: [wix-users] Ordering Service Stop
> > >
> > > You  can use custom actions to stop each service and schedule the
> > > actions
> > >
> > > ‫בתאריך יום ה׳, 1 בספט׳ 2022 ב-19:55 מאת ‪Edwin Castro via wix-users‬‏
> > > <‪ wix-users at lists.wixtoolset.org‬‏>:‬
> > >
> > > > I was hoping to avoid service dependencies. We're in a weird
> > > > situation where we want ServiceA started before ServiceB and we also
> > > > want ServiceA stopped before ServiceB.
> > > >
> > > > --
> > > > Edwin G. Castro
> > > >
> > > >
> > > > On Wed, Aug 31, 2022 at 10:58 PM Nir Bar via wix-users <
> > > > wix-users at lists.wixtoolset.org> wrote:
> > > >
> > > > > You can set service dependencies so that ServiceB is started
> > > > > before ServiceA, and stopped after ithttps://
> > > > >
> > > >
> > wixtoolset.org/documentation/manual/v3/xsd/wix/servicedependency.htm
> > > > l-
> > > > -Nir
> > > > > BarWiX Expert ---- On Thu, 01 Sep 2022 04:54:03 +0300
> > > > > wix-users at lists.wixtoolset.org  wrote ----Can services to be
> > > > > stopped
> > > > with
> > > > > ServiceControl be ordered so that ServiceA is stopped before
> > > > > ServiceB?
> > > > >
> > > > > --
> > > > > Edwin G. Castro
> > > > >
> > > > >
> > ________________________________________________________________
> > __
> > > > > __ WiX Toolset Users Mailing List provided by FireGiant
> > > > > https://urldefense.com/v3/__http://www.firegiant.com/__;!!NK8mlZvK
> > > > > !9
> > > > > kqhETyQxVEObbnH4JEZDks71CUcdb8ArU82-uV-PevkG3yOEIM7-clEhkE-
> > w8YeXx_
> > > > > yt
> > > > > zY7UTGuYwg0kLpWHfzol3lyUg$
> > > > >
> > > > >
> > ________________________________________________________________
> > __
> > > > > __ WiX Toolset Users Mailing List provided by FireGiant
> > > > > https://urldefense.com/v3/__http://www.firegiant.com/__;!!NK8mlZvK
> > > > > !9
> > > > > kqhETyQxVEObbnH4JEZDks71CUcdb8ArU82-uV-PevkG3yOEIM7-clEhkE-
> > w8YeXx_
> > > > > yt
> > > > > zY7UTGuYwg0kLpWHfzol3lyUg$
> > > > >
> > > >
> > > >
> > ________________________________________________________________
> > ____
> > > > WiX Toolset Users Mailing List provided by FireGiant
> > > > https://urldefense.com/v3/__http://www.firegiant.com/__;!!NK8mlZvK!9
> > > > kq
> > > > hETyQxVEObbnH4JEZDks71CUcdb8ArU82-uV-PevkG3yOEIM7-clEhkE-
> > w8YeXx_ytzY
> > > > 7U
> > > > TGuYwg0kLpWHfzol3lyUg$
> > > >
> > >
> > >
> > ________________________________________________________________
> > ____
> > > WiX Toolset Users Mailing List provided by FireGiant
> > >
> > https://urldefense.com/v3/__http://www.firegiant.com/__;!!NK8mlZvK!9kq
> > > hETyQxVEObbnH4JEZDks71CUcdb8ArU82-uV-PevkG3yOEIM7-clEhkE-
> > w8YeXx_ytzY7U
> > > TGuYwg0kLpWHfzol3lyUg$
> > >
> > >
> > >
> > ________________________________________________________________
> > ____
> > > WiX Toolset Users Mailing List provided by FireGiant
> > > http://www.firegiant.com/
> > >
> >
> > ________________________________________________________________
> > ____
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
>


More information about the wix-users mailing list