[wix-users] Stop & Start Service
chrpai at iswix.com
Tue Dec 19 09:46:38 PST 2017
Log the install and look at the time stamps. The scheduling should be pretty quick but the deferred execution phase inside InstallFinalize should have some time between them.
FWIW, the stop/start actions are tied to the installation/removal of the component the row is associated with. So if you are doing patching or something and the component doesn't get installed then the stop/start won't happen.
From: Ven H <venh.123 at gmail.com>
Sent: Tuesday, December 19, 2017 10:53 AM
To: Christopher Painter
Cc: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Stop & Start Service
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.
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.
Suggested InstallExecuteSequence (Windows)<https://msdn.microsoft.com/en-us/library/windows/desktop/aa372038(v=vs.85).aspx>
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?
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
WiX Support | WiX Experts and Resources from FireGiant<http://www.firegiant.com/>
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant
More information about the wix-users