0

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?

Syed Ali
  • 1,817
  • 2
  • 23
  • 44
  • I just ran into a similar issue. I will try to let you know when it is resolved, but my hunch is that it depends on when RemoveExistingProducts is scheduled. – BryanJ May 10 '12 at 14:53
  • thanks. currently I am just preventing an upgrade if a newer version is already installed. I was curious if its possible to get it restored to the previous version. i think it would need to do a "double rollback" for that. – Syed Ali May 10 '12 at 16:46
  • 1
    You may find this link regarding scheduling RemoveExistingProducts useful: http://msdn.microsoft.com/library/aa371197.aspx – BryanJ May 10 '12 at 16:52
  • looks like scheduling it after InstallFinalize will do the job. thanks, will give it a try soon. – Syed Ali May 11 '12 at 08:30
  • It worked when I scheduled RemoveExistingProducts after InstallFinalize. However, I have a plugin which needs to register with an external application. So in this case after installing everything it returns to the rollback mode which fires my custom action for unregistering the plugin. Also ths msi installer will not replace any files if they are older then the currently installed. This makes me think that the error is related to installing the older version of files/services. – Syed Ali May 11 '12 at 10:49
  • Good point. I don't think there is anyway around checking the versions of the binaries. – BryanJ May 11 '12 at 11:57

0 Answers0