We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mat
Posts: 2
Joined: Wed Sep 20, 2023 3:49 pm

Upgrades - Version Information does not stick

I've encountered what seems to be a bug with the AI 21.0.1. Or I don't understand Upgrade Rules at all.

When I set custom Upgrade Rules we can defined what an old product and a newer product is.
For example: I had a version 11.0.5 and I want to update to 11.1.0.

I set up the rules like this:
Screenshot 2023-09-20 165526.jpg
Screenshot 2023-09-20 165526.jpg (41.8 KiB) Viewed 12051 times
11.0.5 is included in the old product range. I want to upgrade this version.
11.1.0 is not included in the newer product range. I don't want to upgrade if the version is higher than 11.1.0.

These rules will provide the following error if version 11.0.5 is already installed:
Screenshot 2023-09-20 165921.jpg
Screenshot 2023-09-20 165921.jpg (20.64 KiB) Viewed 12051 times
Please find the install.log attached.
Here is a snippet from the log:

Action start 16:57:34: FindRelatedProducts.
MSI (c) (68:E4) [16:57:34:664]: PROPERTY CHANGE: Adding AI_NEWERPRODUCTFOUND property. Its value is '{C7C42E3A-406B-43A5-B2E9-21F1A5520EE8}'.
MSI (c) (68:E4) [16:57:34:664]: PROPERTY CHANGE: Adding OLDPRODUCTS property. Its value is '{C7C42E3A-406B-43A5-B2E9-21F1A5520EE8}'.
MSI (c) (68:E4) [16:57:34:664]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{C7C42E3A-406B-43A5-B2E9-21F1A5520EE8}'.
Action ended 16:57:34: FindRelatedProducts. Return value 1.
MSI (c) (68:E4) [16:57:34:664]: Doing action: AI_DOWNGRADE
Action start 16:57:34: AI_DOWNGRADE.

Now the part why I think this is a bug. When I close my AI project and reopen it again, the versions in the Upgrade Rules are reset.
Same thing happens when I save and edit directly afterwards.

Please provide guidance on how to make Upgrades properly work.
Attachments
install.log
(78.22 KiB) Downloaded 257 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrades - Version Information does not stick

Hello and welcome to our forums,

I think you might have misconfigured the rules there.

However, I can not say this for sure as I do not know exactly what you are trying to achieve.

If possible, could you please give me some more details about what your scenario is so I can better assist?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mat
Posts: 2
Joined: Wed Sep 20, 2023 3:49 pm

Re: Upgrades - Version Information does not stick

Sadly that does not seem to be the case. AI has a bug and here is the way to reproduce it:

1) Create a new installer project
2) Go to Upgrades
3) Select "Customize Advanced Installer upgrade rules"
4) Change Max Version of OLDPRODUCTS to 11.0.0
5) Change Min Version of AI_NEWERPRODUCTFOUND to 11.0.0
6) Save the project
7) Reopen any upgrade rule you just set and it will be reset to the default ([|ProductVersion] instead of 11.0.0)
8) Close the project and reopen and the upgrade rules will reflect the changes that do not stick
reset-to-default.jpg
reset-to-default.jpg (137.94 KiB) Viewed 11252 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrades - Version Information does not stick

Hello,

Thank you very much for the test-case.

I've tested this and can indeed replicate the issue on my end as well.

It looks like the "Customize Advanced Installer upgrade rules" does not stay after closing&reopening the project and therefore those values are reset.

I will forward this to our dev team and a fix will be available in a future version of Advanced Installer.

Thank you for bringing this to our attention!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Upgrades - Version Information does not stick

Hello,

This has been fixed in version 21.2 of Advanced Installer.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”