MasterOfDesaster
Posts: 2
Joined: Tue Oct 25, 2022 1:59 pm

Dialog with 2 different folder to select

Tue Oct 25, 2022 2:34 pm

Hello, dear community,

i am new here and have to solve the following problem :

We want to have a dialog, where the user can select 2 different folders (Location of SQL Data/log file)
Dialog.png
Dialog.png (27.88KiB)Viewed 2728 times
The edit fields left to the [...] - Buttons are initialized with a valid path, based on local dialog property.
These local properties are initialized in the dialog init event from a global property.

A click on one of the buttons should perform the following actions :

- Show Folder browser based on path in edit field
- Select another folder
- Write back new path in edit field and (dialog local) property

I failed to get this working, please help :-(

Best regards and thanks in advance, Stefan

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Dialog with 2 different folder to select

Tue Oct 25, 2022 2:50 pm

Hello Stefan and welcome to our forums,

In order to achieve that, please have a look over the following article:

How to browse for a folder at install time

Hope this helps!

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

MasterOfDesaster
Posts: 2
Joined: Tue Oct 25, 2022 1:59 pm

Re: Dialog with 2 different folder to select

Tue Oct 25, 2022 3:48 pm

Hi, Catalin,

i alread had a look at this article, but i think, it does not fit to the given scenario :

In this article the selected path is validated and assigned to the underlying property
bei clicking on the [further]-Button.
This does not work, if i have to select 2 different folders in the dialog before clicking [further]

regards, Stefan

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Dialog with 2 different folder to select

Wed Oct 26, 2022 3:37 pm

Hello Stefan,

If possible, could you please create a sample project that reproduces this and forward it to me?

Additionally, please give me an example (based on the sample project) of:

- what the actual behavior is

- what the expected behavior is

I'd like to run some tests to better understand your scenario and see how we can manage to accomplish your requirements.

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

Return to “Building Installers”