I am really glad everything works as expected now.It is working fine for upgrade and downgrade.
This is indeed true and this happens due to the fact that your "Agree and Downgrade" button is, by default, hidden and has a control condition assigned to it which looks as it follows:While downgrading it is showing "Agree and Upgrade" button(and we want Agree and Downgrade button for downgrade).
Code: Select all
AI_NEWERPRODUCTFOUNDUnfortunately, I'm afraid there is not much to do with our predefined support in this case, since we already did a "hack" in order to achieve the downgrade behavior.
What could be done here is a custom action, that is scheduled to run only during an "upgrade" and which compares the version of the main installation package with the version already installed. If the version from the main package is higher than the version already installed, set a property to a value and use it to condition whther you show the control or not (the "Accept and Upgrade" control). Similar to this, if the version from the main package is lower than the version, set the property to another value and use this to show the control (the "Accept and Downgrade" control).
Best regards,
Catalin