cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Streamlet
Level 5

Rollback in Major Upgrade

Project Type: Basic MSI

I use major upgrade. When upgrading, installer will remove the previous version first, and then install the new version. During the installation of the new version, if clicking the Cancel button, I found it will stop the installation and rollback to the moment when the old version is removed and the new version is not installed. I want it restoring or reinstalling the old version. Is there any solution?

Thanks in advance.
Labels (1)
0 Kudos
(3) Replies
KathyMorey
Level 10

I don't believe Windows Installer will handle that with the sequence you are using. I believe that you can move the RemoveExistingProducts action down between InstallExecute and InstallFinalize, if you want that functionality. However, in that scenario, the installer copies the new files, then removes unneeded old files.
0 Kudos
Streamlet
Level 5

KathyMorey wrote:
However, in that scenario, the installer copies the new files, then removes unneeded old files.


Do you mean installer will copy new files before delete old files?
Will the installer just copy and overwrite files in all components and delete unneeded files (in all components, too)? Or is there any file comparison rulls here?
0 Kudos
anom217
Level 8

I'm looking for a solution to this as well.
0 Kudos