PetrB
Posts: 5
Joined: Wed Jul 02, 2025 11:38 am

Upgrade rules reset when ProductVersion changes with options (Always generate...)

Hello,

My "Customize Advance Installer upgrade rules" in Upgrade section reset their values ("Include minimum version in range" => row with property AI_NEWERPRODUCTFOUND), when I change Product code via ProductVersion options "Always generate ..." or "Ask me at every change."

(Row with OLDPRODUCTS also resets, but checkboxes are default true, hence upgrade works, but preventing downgrade does not)

When I change ProductCode in Product Details -> Product IDs, then the Upgrade rule options stay.

Is this an expected behavior or a bug?

How to produce the behavior:
1) Create new project (Enterprise)
2) Change Product Version Options to "Always generate new ProductCode ... "
3) Change product version to 1.0.0.0 -> (Yes, 4 digits)
4) Check "Include minimum version in range" for upgrade rule row with property AI_NEWERPRODUCTFOUND
5) Change version to 1.0.0.1
6) Check the rule again and the option will be unchecked (every rule resets to default)

I tested it on AI 22.8

Best regards
Petr
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Upgrade rules reset when ProductVersion changes with options (Always generate...)

Hello Petr and welcome to our forums,

This is the expected behavior.

Please note that the option "Include minimum version in range" is reset when we detect that you are modifying 4th field to prevent the error "A more recent version of Your Application is already installed on this computer." from being displayed. If you have version 1.0.0.2 installed and are building version 1.0.0.3 with the above option enabled, this setup will not run even if it has a higher version.
image (4).png
image (4).png (91.61 KiB) Viewed 889 times

This option will include the minimum version you specified in the old product versions which will be upgraded. For example, if the minimum version is 1.1 then your package will upgrade all the old product versions which are equal to or higher than 1.1.

Let us know if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”