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!

pforsbom
Posts: 23
Joined: Mon Apr 01, 2019 11:03 am

Custom Dialog validation

Hi
I have a custom dialog with a ListBox. This listbox is populated with some paths from registry using a custom action (writen in C#).

I have some questions:
1. User MUST select one value from the list before he can proceed. How can I disable the next button until a value is selected?
2. How do I retrieve the selected value? I want to use the selected path value to install some files from the installer package.
pforsbom
Posts: 23
Joined: Mon Apr 01, 2019 11:03 am

Re: Custom Dialog validation

I actually figured this out myself :D

On the "Next" button I added two Control Conditions:
1. MY_LISTBOX = "" - Disable
2. MY_LISTBOX <> "" - Enable

And using the selected value is just using the property of the listbox = MY_LISTBOX
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom Dialog validation

Hi and welcome to our forums.

Indeed, your solutions are correct. If you have other questions, just let us know.

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

Return to “Building Installers”