I have two versions of setup say v1 and v2. Both of them are run using the same privilages and both of them install and start a service - which is also the same.
When I install v1 first and then v2 everything works fine. The setup prompts to stop the services already running before the update and then proceeds.
The problem occurs when I install v2 first and then try to run v1. The setup discovers that the product has been installed previously and then prompts to stop the previously running services.
It manages to stop these services and then tries to install it again. While trying to start the services it fails with the following message in the log:
"Error 1920. Service 'Service Name' (serviceName) failed to start. Verify that you have sufficient privileges to start system services."
The error dialog also gives options to Retry and Cancel the setup. On retry the same thing happens again.
On cancel the setup goes into RollBack mode but it does not actually restores the previous version i.e. v2. Instead it just removes v2. It should have either restored the original setup or carried out the downgrade?