Skipping custom dialogs on patch/upgrade/update - Advanced Installer Community
MGS
Posts: 128
Joined: Tue Oct 04, 2022 9:52 am

Skipping custom dialogs on patch/upgrade/update

Hello,

We have a few custom dialogs which are required for the first time install.
When upgrading/updating our product these dialogs should not be displayed. We just want a simple upgrade that overwrites updated files with the newer version.
How can we do this?
Capture2.PNG
Capture2.PNG (99.09 KiB) Viewed 2843 times
Best regards,
Kilian
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Skipping custom dialogs on patch/upgrade/update

Hello Kilian,

In order to skip these dialogs, you can use a condition as it follows:

Code: Select all

NOT OLDPRODUCTS
OLDPRODUCTS is a property that is set to the previous version ProductCode. As you can imagine, this is only set on upgrade.

In order to set a condition for your dialog, you can right click on it in "Dialogs" page and "Show only if...".

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MGS
Posts: 128
Joined: Tue Oct 04, 2022 9:52 am

Re: Skipping custom dialogs on patch/upgrade/update

Hi Catalin,

Thanks for the reply!
OLDPRODUCTS is a property that is set to the previous version ProductCode. As you can imagine, this is only set on upgrade.
So I adapted my installer and now it shows a message box with the contents of the OLDPRODUCTS property ("OLDPRODUCTS: [OLDPRODUCTS]") during installation using a custom action. Then I created two installers (let's call them v1 and v2) using Advanced Installer. After creating v1, I regenerated the product code (to my knowledge the product code should be changed between versions, but the upgrade code has to be the same) and changed the file version of one file, then I created v2. Then I installed v1, and it showed "OLDPRODUCTS: ", therefore it was not assigned. Next, I installed v2, and it showed again "OLDPRODUCTS: ", therefore it was still not assigned. What am I missing here?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Skipping custom dialogs on patch/upgrade/update

Hello Kilian,

Please note that OLDPRODUCTS is set during the "FindRelatedProducts" standard action.
Screenshot_171.png
Screenshot_171.png (5.45 KiB) Viewed 2779 times

This standard action is part of the "Searches" action group, so please make sure that your messagebox custom action is scheduled after that.
Screenshot_172.png
Screenshot_172.png (44.64 KiB) Viewed 2779 times

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

Return to “Common Problems”