I have what is I imagine a common scenario, but am having trouble getting things working completely.
The scenario is quite simple, I would like to perform a major upgrade of a product, without changing the service settings and without requiring a reboot.
- On a normal install, the service should install and start
- On an uninstall the service should stop and be removed
- On an upgrade the service should be stopped (not removed), new files written, and the service started again
I have this mostly working by using the condition NOT UPGRADINGPRODUCTCODE on DeleteServices. However, the service is not being stopped during the upgrade and therefore a reboot is required.
Is there some way on an upgrade to stop a service, install the new files and restart the service without removing/installing the service?