KingGizzard237
KingGizzard237

Reputation: 5

Attempting to perform a major upgrade with Installshield 2022 behaves as a downgrade

I am attempting to create an installer to upgrade my software to version 2.0.0.0 using InstallShield 2022.

I have changed the Product Version from 1.0.38 to 2.0.0.0, got a new GUID for the Product Code, ensured the Generate new Package Code field is set to "yes", created a major upgrade item set to "Products sharing my upgrade code" and "Any earlier version", as well as created a clone of my original release to test the major upgrade. When I build the clone and attempt to upgrade from an installed version of 1.0.38 to my test 2.0.0.0 version, I get an error message that says "A newer version is already installed..." and then it fails the upgrade. I can't understand why this happening.

I haven't actually changed/added/deleted any of the files that get installed, I just wanted to test that major upgrade would work in the future for my software. Could it be something with the default ISPreventdowngrade item?

The detect property for ISPreventDowngrade is ISFOUNDNEWERPRODUCTVERSION And the detect property for my new major upgrade item called NewUpgradeEntry1 is ISACTIONPROP1. These should be defaults and I did not do anything with them before I built the 2.0.0.0 installer

Upvotes: 0

Views: 116

Answers (1)

Vivek
Vivek

Reputation: 1079

Settings for ISPreventDowngrade is not correct. Instead of "Any Earlier version" option, Select "Within a specific range of versions". Uncheck "Version Range Inclusive". In min version, specify the current Product version. e.g 2.0.0.0 and left max version empty. This should work.

Upvotes: 0

Related Questions