cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Joseph_Schrag
Level 6

Prevent old version removal on major upgrade failure?

I have a basic MSI that has a major upgrade set up. I have found that if a major upgrade fails, the old version is removed. Is there a way to backup the old version and revert if the upgrade fails?
Labels (1)
0 Kudos
(3) Replies
Joseph_Schrag
Level 6

Can anybody help here? This is pretty urgent.
0 Kudos
kirann_hegde
Level 5

Ensure that your RemoveExistingProducts action is scheduled before the InstallFinalize action. Reason being, anything scheduled between InstallInitialize and InstallFinalize gets rolled back.

In your upgrades view of INstallshield, there is a radio button which says:
InstallSetup then remove unneeded files
It also provides with a check box which says:Rollback all changes if removal of old files fails.

If you dont have this check box enabled, InstallShield inserts RemoveExistingProducts after InstallFinalize and hence the rollback of your old product will not be carried out.

Regards,
Kiran Hegde
0 Kudos
Joseph_Schrag
Level 6

Sounds Perfect. Thank you! I will give it a shot.
0 Kudos