installshield-2011

InstallShield exisiting application checking


I have two different versions (Basic and Professional) of my application. I have created two different setup projects for both the versions. I want to restrict the user to install only one version per system. If user has the Basic version and he tries installing the professional version I have to uninstall the basic version.

Can anybody tell me how I can check the registry entry for my basic version and uninstall if the user tries to install the professional version? I also have to do vice versa.

I am using InstallShield 2011 and my project type is BASIC MSI.

Early help would be appreciated..

Thanks, Vinay


Solution

  • The approach I would consider is to use Major Upgrades. You can then choose whether to use the same upgrade code for both editions, or to use two different ones and have Upgrade entries for the other edition (in addition to its own).

    If you do want to allow a cross-edition downgrade while disallowing a same-edition downgrade, use two different upgrade codes. If you want to disallow any version downgrade, cross-edition or otherwise, either option will work (I would tend to suggest different codes for clarity, but it's not critical).