This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Detecting versions
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 04, 2008
09:09 AM
New version detects older version as latest
Hello all,
I need help with a behavior I hadn't encountered before with basic MSI projects.
Until recently, I had the latest version detect an older one and uninstall it silently before installing it. so far so good.
As the tester encountered a problem with my latest version, I incremented the version in Product Properties, generated another product code and kept the upgrade code so I can specify the latest version is a major upgrade in the Upgrades view. The effect should be that any previous version should be uninstalled, and the latest version installed straight afterwards.
Unfortunately, things don't happen that way. Every time I execute the latest version, I get a message reading that a more recent version is already installed in the computer, and that it should be uninstalled before a previous version can be installed.
I've tried many different settings, incremented the version again, and I stil get the same message, which doesn't make sense at all.
Has anyone got a hint? Where did I go wrong?:confused:
I need help with a behavior I hadn't encountered before with basic MSI projects.
Until recently, I had the latest version detect an older one and uninstall it silently before installing it. so far so good.
As the tester encountered a problem with my latest version, I incremented the version in Product Properties, generated another product code and kept the upgrade code so I can specify the latest version is a major upgrade in the Upgrades view. The effect should be that any previous version should be uninstalled, and the latest version installed straight afterwards.
Unfortunately, things don't happen that way. Every time I execute the latest version, I get a message reading that a more recent version is already installed in the computer, and that it should be uninstalled before a previous version can be installed.
I've tried many different settings, incremented the version again, and I stil get the same message, which doesn't make sense at all.
Has anyone got a hint? Where did I go wrong?:confused:
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 04, 2008
09:46 AM
If you create an MSI log file, is there any indication of where the message is coming from? Are you using setup.exe or just the MSI file?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 04, 2008
10:26 AM
RobertDickau wrote:
If you create an MSI log file, is there any indication of where the message is coming from? Are you using setup.exe or just the MSI file?
Hello Robert,
Thanks for your quick reply.
To answer your question, I'm using setup.exe.
I tried quite a few things before you replied and managed to get out of my infernal circle. Here are the details:
In Upgrades (or upgrade table), I had two entries:
- The default one named ISPreventDowngrade with the ActionProperty: ISFOUNDNEWERPRODUCTVERSION
- One I created and named UninstallAllPrevious with ActionProperty: ISACTIONPROP1
They had the same settings on both the Common and Advanced tabs of the Upgrades view.
After many changes, I decided to delete both, build and execute setup.exe again (just to make sure I wouldn't see the message again;) ), then added only the UninstallAllPrevious, build and executed setup.exe, and I finally obtained a logical behavior, which is that the installed previous version of the product gets uninstalled when I execute the latest version of setup.exe.
I think I'm going to try and add the ISPreventDowngrade again to see what happens.
I hope this (long) post will be of use.:p
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 07, 2008
05:24 AM
Just a short post to confirm that after having added ISPreventDowngrade in Upgrades view again and tested, everything is back to normal (latest version of setup doesn't see older version as the latest one).