How can I stop an .exe on repair, update and delete in wix?
问题 In my wix I use the following declaration: <ComponentGroup Id="BinComponents" Directory="BIN"> <Component Id="BinComponent" Guid="23D229D0-06EE-49f4-80B4-6D7136500721"> <File Id="MyProjectOutput" Name="MyProject.exe" Source="MyProject\bin\MyProject.exe"/> <ServiceControl Id="RemoveService" Stop="both" Remove="both" Name="MyProject.exe" Wait="yes" /> <!-- Stop running MyProject instances --> </Component> </ComponentGroup> My Repro: At first, I run my installation as usual. After the