I´ve got the following code in my WIX-setup. Now I do want to stop the service, when I install it again.
<Component Id="CMP_Service" Feature="Core" Guid="8926df5e-89b3-47b0-875e-b5c4d14ab0b4">
<File Source="$(var.Service.TargetPath)" KeyPath="yes">
<fire:FirewallException Id="ServiceException" Name="Service Exception" Protocol="tcp" Port="[PORTProperty]" Scope="any" />
</File>
<ServiceInstall Id="ServiceInstallELS"
Name="Service"
Description="Service"
Start="auto"
Account="NT AUTHORITY\LocalService"
ErrorControl="critical"
Type="ownProcess"
Vital="yes" Arguments=" /start AtledService" />
<ServiceControl Id="ServiceControllELS"
Name="Service"
Start="install"
Stop="both"
Remove="uninstall"
Wait="yes" />
</Component>