Reputation: 7043
We developed an installer using Wix, and after uninstalling our app it suggests that we reboot the computer. It seems due to our app having installed a Windows Service.
Is there any way we can avoid reboot, maybe if we have some code which stops the service, unregisters it, etc?
Upvotes: 2
Views: 823
Reputation: 1401
You need to use the ServiceControl
element:
<ServiceControl Id="ServiceController" Start="install" Stop="both" Remove="uninstall" Name="{NameOfYourService}"/>
This will:
The docs are here if you need them.
Upvotes: 3