[wix-users] Stop & Start Service

Christopher Painter chrpai at iswix.com
Wed Dec 20 06:39:53 PST 2017


Assuming the component is being installed then yes it does imply that.


________________________________
From: Ven H <venh.123 at gmail.com>
Sent: Wednesday, December 20, 2017 6:40 AM
To: WiX Toolset Users Mailing List
Cc: Christopher Painter
Subject: Re: [wix-users] Stop & Start Service

Let's say, it is not IIS and some other service like SQL or some other built in service. I want the service to be stopped at the beginning of the MSI installation and started towards the end of the installation. So, does it imply that the Stop and Start actions will automatically take care of this or some custom handling will be required? Please explain.

Regards,
Venkatesh

On Tue, Dec 19, 2017 at 11:18 PM, Christopher Painter via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:
Agreed.  Probably why a lot of people are going to containers and cloud services.... not all developers can be trusted to do the right thing.


________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> on behalf of Edwin Castro via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
Sent: Tuesday, December 19, 2017 11:28 AM
To: WiX Toolset Users Mailing List
Cc: Edwin Castro
Subject: Re: [wix-users] Stop & Start Service

Perhaps this webapp is the only one deployed today to this IIS service...
but IIS can host multiple sites and multiple webapps. Stopping and starting
IIS affects all sites and webapps which could be really, really bad if
those other sites and webapps suddenly go down without notice. For this
reason, IIS supports the concept of AppPools which allows you to separate
unrelated sites and webapps from each other in different processes. You
should be creating a unique AppPool that you own so that you can stop and
start that AppPool rather than the default AppPool or the entire IIS
service. Perhaps a set of related sites and/or webapps could reuse the same
AppPool you should do so carefully. Restarting all of IIS is a *bad*
requirement.

--
Edwin G. Castro


On Dec 19, 2017 08:54, "Ven H via wix-users" <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
wrote:

> Thank you Chris. But, does this really work as expected? Because, I see it
> stops & starts quickly and doesn't seem to follow the sequence. Also, it's
> a requirement to stop it at beginning and start it back towards the end of
> the installation.
>
> Regards,
> Venkatesh
>
> On Tue, Dec 19, 2017 at 5:47 PM, Christopher Painter <chrpai at iswix.com<mailto:chrpai at iswix.com>>
> wrote:
>
> > That's pretty much what MSI was designed to do.  The StopServices action
> > is run towards the front (1900) and the StartServices action is ran much
> > later near the end (5900).
> >
> >
> > That said, I typically don't start/stop  IIS unless I really have to.
> > Usually I'm dealing with ASP.NET<http://ASP.NET> applications and modern versions of IIS
> > are pretty good about noticing changes to a web.config file and
> > automatically restarting that portion of the web server.
> >
> >
> > https://msdn.microsoft.com/en-us/library/windows/desktop/
Develop Windows desktop apps – Windows app development<https://msdn.microsoft.com/en-us/library/windows/desktop/>
msdn.microsoft.com<http://msdn.microsoft.com>
Find resources to develop for the Windows desktop such as APIs and samples.



> > aa372038(v=vs.85).aspx
> > Suggested InstallExecuteSequence (Windows)
> > <https://msdn.microsoft.com/en-us/library/windows/desktop/
> aa372038(v=vs.85).aspx>
> > msdn.microsoft.com<http://msdn.microsoft.com>
> > The suggested action sequences for a basic InstallExecuteSequence table
> in
> > a Windows Installer database.
> >
> >
> >
> >
> >
> > ------------------------------
> > *From:* wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> on behalf of
> > Ven H via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>>
> > *Sent:* Monday, December 18, 2017 10:54 PM
> > *To:* WiX Toolset Users Mailing List
> > *Cc:* Ven H
> > *Subject:* [wix-users] Stop & Start Service
> >
> > Using the ServiceControl element, we can start or stop (or both) a
> service
> > during MSI installation. But, I need to stop a service (for example IIS)
> at
> > the beginning of MSI installation and start it again during the end of
> MSI
> > installation. Can anyone please help me achieve this?
> >
> >
> > Regards,
> > Venkatesh
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> > WiX Support | WiX Experts and Resources from FireGiant
> > <http://www.firegiant.com/>
> > www.firegiant.com<http://www.firegiant.com><http://www.firegiant.com>
> > WiX Support | Installation, Development, Deployment | WiX Experts and
> > Resources from FireGiant
> >
> >
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>

____________________________________________________________________
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