[wix-users] ServiceControl
Edwin Castro
egcastr at gmail.com
Fri Apr 13 07:36:26 PDT 2018
I don't quite understand your question. Perhaps include a little more code?
Or rephrase the question?
--
Edwin G . Castro
On Fri, Apr 13, 2018, 07:25 Colin Dawson (Astronutter) via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> 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
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
More information about the wix-users
mailing list