[wix-users] [wix-users[ ServiceControl question...

Phill Hogland phill.hogland at rimage.com
Wed Mar 30 07:15:51 PDT 2016

I use:
<util:RestartResource ServiceName="ServiceShortName"/>

From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Lewis Henderson <henderso at opentext.com>
Sent: Wednesday, March 30, 2016 8:44 AM
To: WiX Toolset Users Mailing List
Subject: [wix-users] [wix-users[ ServiceControl question...

Hi Guys,

I have a question about the ServiceControl element.  When you have Start="install" and Stop="both", does the service get stopped first, then restarted for the install case?

Let me clarify the situation.  I have a product install that has four features, all of which reference an apache-tomcat installation (and service).  Each of the features may be installed independently, so a maintenance install may come around and add or remove a feature at a later time.  In that case, I need to 1) stop the tomcat service, 2) add or remove the selected feature, and 3) restart tomcat if any of the features are left.

What ServiceControl settings (if any) will do this?  Maybe Start='both" as well?   BTW, I have Remove="uninstall" and Wait="yes" specified.  If ServiceControl can't handle it, how do I make it work?

Thanks for the information.

                                                                Lewis Henderson
                                                                OpenText, Inc.

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list