Andrey.Burda
Posts: 23
Joined: Tue Dec 14, 2021 12:06 pm

Disable condition on APPDIR property

Mon Dec 20, 2021 3:57 pm

Hi there,

I am having a problem with mixing up of Combobox and "disable" condition for Next button.

I have a combobox where I want to select a path to target folder, it is mapped to APPDIR property.
For tests I added a label that reflects APPDIR value, by default I set APPDIR="D:/" in "Install Parameters" section:
20-12-2021 5-46-56 PM.jpg
20-12-2021 5-46-56 PM.jpg (28.37KiB)Viewed 2779 times
"Next" button on FolderDlg has a condition that if APPDIR = "D:/" - Disable.
20-12-2021 5-46-23 PM.jpg
20-12-2021 5-46-23 PM.jpg (34.72KiB)Viewed 2779 times
The idea to is to disable "Next" untill user select any value from ComboBox.

Once I select anything from Combobox, I see that label text get changed, but "Next" button is still disabled:
20-12-2021 5-46-37 PM.jpg
20-12-2021 5-46-37 PM.jpg (36.86KiB)Viewed 2779 times
Not sure why Next is not enabled. Seems that dialog is not refreshed or something.

Appreciate for a help.

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Disable condition on APPDIR property

Tue Dec 21, 2021 9:32 am

Hello Andrey,
The idea to is to disable "Next" untill user select any value from ComboBox.
In order to achieve that, please proceed as it follows:

1. Select the "Next" button and change it's Enabled attribute to false.

2. In the "Control Conditions" tab add the condition to enable the ComboBox if is not empty.
NextButton.png
NextButton.png (59KiB)Viewed 2771 times
Attached is a sample project with that scenario. Can you please test it? If you still can't get this working, can you please send us the .AIP (setup project) file by email to support at advancedinstaller dot com so I can have a look on it?

Best regards,
Liviu
Attachments
Your Application.aip
(23.39KiB)Downloaded 167 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Andrey.Burda
Posts: 23
Joined: Tue Dec 14, 2021 12:06 pm

Re: Disable condition on APPDIR property

Tue Dec 21, 2021 2:45 pm

Hi Liviu,

I was trying the attached example and it works. Also, I modified my project the same way and it works too.

The problem with my solution was that an APPDIR property I mapped to ComboBox cannot be empty. So I created an empty property, mapped it to ComboBox and once user select an item from ComboBox and press Next I call a "Set installer property" to set APPDIR to the path that user selected.

Thanks for a help!

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Disable condition on APPDIR property

Tue Dec 21, 2021 3:39 pm

You're welcome, Andrey!

I'm glad you got this working.

Please let us know if you have any other questions.

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

Return to “Building Installers”