Hello Markus,
Please keep in mind that it is not recommended to use such a scenario. However, in order to achieve what you want you can proceed like this:
- Go to
"Upgrades" page and check the "Customize Advanced Installer upgrades rules" option.
- In the "Upgrades" group add an additional upgrade rule using the "New..." context menu option.
- In the
"Product Info" tab of the "New Upgrade" dialog set the following option:
- Upgrade Code: [|UpgradeCode]
Min. Version: [|ProductVersion]
- In the
"Upgrade Action" tab set the "Store in" field with
MY_PROP.
- Select the "AI_NEWERPRODUCTFOUND" row and use the "Edit..." context menu option. Set the "Min. Version" field, from "Product Info" tab, with a higher number (e.g. 10000).
- Go to "Dialogs" page, select the "WelcomeDlg" dialog and add a new dialog (e.g. MY_DIALOG).
- Select "MY_DIALOG" and from its context menu choose "Show only if ..." option. Set the "Expression" field, from "Edit Condition" dialog, with MY_PROP (in this way this dialog will be displayed only when a downgrade can be performed).
- Customize accordingly your new dialog (MY_DIALOG) to display a downgrade warning message.
- Build and run your project.
Let us know if this helped.
All the best,
Daniel