Hi Arnau,
In order to achieve this you can go in the "Upgrades" page of your project and create a new "Upgrade Rule" as described below:
- Product Info Tab
Upgrade Code: [|UpgradeCode]
Min. Version: 0.0.1
Max. Version: x.y.z (your version)
Check the "Include maximum version in range" option
Upgrade Action Tab
Store in: [YOUR_PROP]
The
[YOUR_PROP] property is set only if the version installed on the user's machine is in the "Min. Version - Max. Version" range.
Please note that this property will be set after the "Install Execution Stage -> Searches" action group. If you need it earlier, you will have to create your own custom action that gets the previous version of the application and verifies it.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging