[wix-users] ServiceControl

Colin Dawson (Astronutter) c.j.dawson76 at gmail.com
Fri Apr 13 07:25:05 PDT 2018


Hi everyone.

I’m trying to get my installer to stop and start a 3rd party windows service.     I’m doing this because I’m modifying the configuration of the service, hence the need for the restart.

To this end I know that I need to use the <ServiceControl> tag.  My tag will read like this

<ServiceControl Id=“TeamCityBuildAgent” Name=“TCBuildAgent” Start=“both” Stop=“both” Wait=“yes” />

I want to trigger this when two properties and set

<![CDATA[TEAMCITYBUILDAGENTINSTALLPATH and MODIFYTEAMCITY=“TRUE”]]>

This is as far as I’ve got... what I don’t know is how to make this valid for the installer the ServiceControl can’t be part of a fragment.

Anyone know what I need to do to get this working?    Btw, for this action I have no files/directories to mess with.

Regards

Colin

Sent from my iPhone


More information about the wix-users mailing list