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
- :
- Re: Can't detect previous version of application installed with InstallShield 9
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
‎Feb 08, 2011
08:16 AM
Can't detect previous version of application installed with InstallShield 9
I am developing a new Basic MSI Project with the Evaluation version of InstallShield 2011 Professional edition. This new installer for the latest version of our application must be able to upgrade a previous version, installed by an installer built with InstallShield 9.
The problem is that the MSI installer doesn't detect that a previous version of the application is installed, and it installs the new version on the old one (BTW, without overwriting existing files).
From the MSI log I get the following:
Further information:
1) The 2011 ProductCode matches of course the ProductGUID and the InstallGuid of the old installer.
2) I have tried to implement some InstallScript code to debug this problem running inside the MSI. I can't even detect any installed version by calling "VerProductGetInstalledVersion" (which returns a result < ISERR_SUCCESS).
3) I have configured Media > Upgrades as "Minor/Small: Prompt" and "Major: Complete Uninstall Then Reinstall".
The problem is that the MSI installer doesn't detect that a previous version of the application is installed, and it installs the new version on the old one (BTW, without overwriting existing files).
From the MSI log I get the following:
MSI (c) (44:8C) [14:27:00:324]: APPCOMPAT: looking for appcompat database entry with ProductCode '{...}'.
MSI (c) (44:8C) [14:27:00:324]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (44:8C) [14:27:00:324]: APPCOMPAT: no matching ProductCode found in database.
Further information:
1) The 2011 ProductCode matches of course the ProductGUID and the InstallGuid of the old installer.
2) I have tried to implement some InstallScript code to debug this problem running inside the MSI. I can't even detect any installed version by calling "VerProductGetInstalledVersion" (which returns a result < ISERR_SUCCESS).
3) I have configured Media > Upgrades as "Minor/Small: Prompt" and "Major: Complete Uninstall Then Reinstall".
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 09, 2011
04:42 PM
Just to confirm, was the older product installed using a Windows Installer project (and not an InstallScript project)? If so, in the Media > Upgrades view, did you create a minor upgrade or major upgrade item, as opposed to just configuring those upgrade properties?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 14, 2011
04:30 AM
No, it was created as an InstallShield project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 15, 2011
05:41 PM
An MSI project won't automatically remove an installed InstallScript project; perhaps calling RegDBGetUninstCmdLine and running that command if it exists would do the trick. (Some modification would be required for a silent uninstallation, but first things first.)
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)