IT:AD:WiX:HowTo:Refresh a Windows Service
Summary
Process
<Component Id="_componentService" Guid="TODO">
<!--
Notes:
* Start/Stop/Remove = Svc should be [started] when
[parent component (note: != service)] is
[install|uninstall|both].
* Wait: wait for the service to complete before continuing.
* If you want to refresh the service everytime, make all=both.
-->
<ServiceControl Id="_reinstallService" Name="MyServiceName"
Start="install"
Stop="uninstall"
Remove="uninstall"
Wait="yes"/>
</Component>