cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JoeGuzman10
Level 3

Major Upgrade Not Uninstalling Previous Version

Hello, I have the following setup:

Basic MSI Package
InstallShield 2012 Version 18 Service Pack 1

To Create the Major Upgrade I did the following
1. Updated Product Version from: 5.15.0000 to 5.15.0001
2. Generated new Product Code
3. Generated new Package Code

Observed the following
In Custom Actions and Sequences --> Installation --> Execute
FindRelatedProducts: Condition is set to: NOT ISSETUPDRIVEN
RemoveExistingProducts has no Condition set [Empty]

After running the MSI the log shows the following:
See attachment to view entire log
Action 10:48:48: SetupInitialization. Dialog created
Action ended 10:48:48: SetupInitialization. Return value 1.
MSI (c) (2C:08) [10:48:48:920]: Doing action: FindRelatedProducts
Action 10:48:48: FindRelatedProducts. Searching for related applications
Action start 10:48:48: FindRelatedProducts.
Action ended 10:48:48: FindRelatedProducts. Return value 1.
MSI (c) (2C:08) [10:48:48:921]: Skipping action: ISPreventDowngrade (condition is false)
MSI (c) (2C:08) [10:48:48:921]: Skipping action: CCPSearch (condition is false)
MSI (c) (2C:08) [10:48:48:921]: Skipping action: RMCCPSearch (condition is false)

Further steps I find:
Action ended 10:49:14: InstallValidate. Return value 1.
MSI (s) (C8:A0) [10:49:14:865]: Doing action: RemoveExistingProducts
Action 10:49:14: RemoveExistingProducts. Removing applications
Action start 10:49:14: RemoveExistingProducts.
Action ended 10:49:14: RemoveExistingProducts. Return value 1.
MSI (s) (C8:A0) [10:49:14:867]: Doing action: InstallInitialize

Also I Noticed in the Direct Editor --> Upgrade table - The UpgradeCode is all zeros
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

For a major upgrade to work, you have to add another row in the Upgrade table. Typically you would do this by adding a Major Upgrade Item in the Upgrades view, under Upgrade Windows Installer Setup. The ISPreventDowngrade item not sufficient for this; it is a special entry that searches for the reverse case (existing installations that are of a higher version) in order to prevent installation of the current lower version.
0 Kudos
JoeGuzman10
Level 3

Thank You Michael!

I did as you suggested and it fixed the problem (see below)

Go to:
Media --> Upgrades --> Prepare Stup For Upgrade Scenarios --> Upgrade Windows Installer Setup
Right-Click: Add Major Upgrade Item

Common Tab --> Select Products having another Upgrade Code: (use the same upgrade code for existing product)


Result: Created a new row in Direct Editor --> Upgrade table

🙂 Major Upgrade now uninstalls previous version.
0 Kudos