Reputation: 93
I have a product called MyApp. This product comes with different editions, like BASIC and PRO. Both editions have their own installer with the same version.
When I have installed the BASIC edition and run the PRO installer, I want InstallShield to detect this. The overall constellation is illustrated in the following image.
The black arrows are handled as Major Upgrades without a problem. The red arrows illustrate the issue.
Too detect this scenario I thought about checking for the changed package code. By the following link this scenario is defined as Small Update.
Upvotes: 0
Views: 574
Reputation: 15905
Unless IS_MINOR_UPGRADE is set in this scenario, there is no such property. You might be able to write a custom action that examines the currently recorded information about the installed package (see MsiGetProductInfo), but you might quickly run into the limitations of which Windows Installer APIs you are allowed to call inside a custom action.
Assuming there are different files between your editions (that is, different names, not just different builds of the same file name) I think you're going to have problems moving both "left" and "right". Doing so is likely to orphan components on the machine going at least one of the directions. I would suggest using one of these alternative approaches:
Upvotes: 1