[wix-users] Stop & Start Services

Edwin Castro egcastr at gmail.com
Wed Jun 20 10:17:48 PDT 2018


What do you mean by "ServiceControl element, it lets me stop and start
immediately"? ServiceControl has attributes that let you control when the
StartServices and StopServices standard actions will start/stop the given
service.

Manish is suggesting that if StartServices/StopServices/ServiceControl does
not give you the behavior you want, which we assume is the case since
you're asking the question, then you can simply use a custom action to call
net start/stop or the powershell equivalent to start/stop the services.
Using your own custom action allows you to schedule it exactly when you
want.

--
Edwin G. Castro


On Wed, Jun 20, 2018 at 8:41 AM, Ven H via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> Thank you. But I am looking for more clarity. If I have to ServiceControl
> element, it lets me stop and start immediately, but not stop during
> beginning of installation and start at the end of installation. This is
> what I am looking for.
>
> Regards,
> Venkatesh
>
> On Wed, Jun 20, 2018 at 8:17 PM, <duggal_sunny at yahoo.com> wrote:
>
> > You could use net stop or PowerShell support for Start/Stop Service.
> > However, do note that service start/stop is usually an elevated action.
> > This means you need to use custom action within InstallInitialize and
> > InstallFinalize phases.
> >
> > Thx
> > Manish
> >
> > Sent from my iPhone
> >
> > > On Jun 20, 2018, at 5:09 AM, Ven H via wix-users <
> > wix-users at lists.wixtoolset.org> wrote:
> > >
> > > Is there a way to *stop *services (not just one) at the *beginning *of
> > > installation and *start* them again at the *end *of installation using
> > > ServiceControl element? If not ServiceControl element, what are the
> other
> > > options? Please help.
> > >
> > > ____________________________________________________________________
> > > 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