Do not show dialogs if it is an upgrade? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Do not show dialogs if it is an upgrade?

Hello,

I am using the Surface theme. I have created custom dialogs. The installer hides the "Install" button in the first dialog and shows the "Next" button when running the installer. This is OK if the installer is a fresh install. But if it is an upgrade then no need to show the custom dialog. Only show the first dialog. It needs to show the "Install" button instead of the "Next" button. But it can show the license agreement dialog when the link in the first dialog is clicked.

How to do this please?

:?:
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

Hi,

In order to achieve this, you can go in the "Dialogs" page, right-click on the dialogs that you do not want to display during the upgrade, select the "Show only if..." option and use the "NOT OLDPRODUCTS" condition for them.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

Great. Thank you. But the "Show only if..." option is not enabled for the VerifyReadyDlg. How to do that please?
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

Hi,

Indeed, the "Show only if..." option is not available for the "VerifyReadyDlg" dialog. In this case, you can add a "Close the current dialog" published event with the "Return" argument on the "Next" button of the first dialog, place it the last in sequence and set the "OLDPRODUCTS" condition for it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

Thank you for your help.

I also found another method.

The "Install" and "Next" buttons have Control Conditions. Both has conditions to Show and Hide the buttons. You can just replace the conditions with NOT OLDPRODUCTS. This seems to show the the "Install" button if it is an upgrade and show the "Next" button if it is not. What do you think?

:?:
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

This will work only if you add a "Close the current dialog" published event with the "Return" argument on the "Install" button and set the "OLDPRODUCTS" condition for it. Also, you need to set the "NOT OLDPRODUCTS" condition for the "[AiEventsControl]" event.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

Thank you.
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

Hello,

The user can click on the license agreement link from the first dialog. This shows the LicenseAgreementDlg dialog. But when the "Agree" button is clicked, it goes to custom dialog instead of installing. i did add a "Close the current dialog" published event with the "Return" argument on the "Agree" button and set the "OLDPRODUCTS" condition for it. Also, I set the "NOT OLDPRODUCTS" condition for the "[AiEventsControl]" event. Still goes to the custom dialog. Not installing. What to do please?

:?:
Last edited by Codename K on Wed Apr 05, 2017 7:40 pm, edited 1 time in total.
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

Hi,

To go right to the install stage when the "Agree" link is pressed during the upgrade you can, indeed, add a "Close the current dialog" published event with the "Return" argument on that link with the "OLDPRODUCTS" condition and also set the "NOT OLDPRODUCTS" condition for the "Display a specific dialog -> LicenseAgreementDlg" event.

I attached a sample project so you can take a look on its configurations and also test it.

Best regards,
Eusebiu
Attachments
Your Application.aip
(28.31 KiB) Downloaded 416 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

Hello,

I tried the AIP file. I installed as version 1.0.2. Then changed the version to 1.0.3 and opened the installer. Now when the license agreement link is clicked it goes straight to the installation without license agreement dialog.
K
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

I fixed the issue. In the LicenseAgreementDlg dialog, on the "Agree" button, you have to add the condition "AI_INSTALL AND ( NOT OLDPRODUCTS )" for the "[LicenseAgreementDlg]" event in the "Init Events".
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

Indeed, the AIP file I posted goes right to the install stage when the "Agree" link is pressed. It seems that I misunderstood your request, sorry for that. I'm glad you got it working by yourself.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Do not show dialogs if it is an upgrade?

Thank you for your support.
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Do not show dialogs if it is an upgrade?

My pleasure to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”