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!

Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Optionally Browse for a Folder

Hi Team and Community,

We need to user to optionally select an existing folder -- just to read data from.
Following this guide http://www.advancedinstaller.com/user-g ... older.html, we successfully added a folder selection dialog.

That works well but the path selection is not optional, sadly. The user is forced to select an existing, valid folder.
We consider a special initial value like "(nothing selected)" or "No, I don't want to import data" in the path edit field.

Is there a user friendly solution to make the folder selection optional ?

Thank you,
Ruben
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optionally Browse for a Folder

Hi Ruben,

I'm afraid that you need a valid path for the Path Edit control.

However, you can use Control Condition to hide or show the related controls (e.g. pathedit and the browse button). Please see the attached sample .AIP that implement this scenario.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Attachments
SampleProject.zip
(3.25 KiB) Downloaded 335 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Re: Optionally Browse for a Folder

Hello Dan,
Building the SampleProject failed with a missing resource.
My machine has the folder C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Caphyon\Advanced Installer, but with only a zero-byte file "Settings.ais" inside and nothing else.
Do you know a way to fix it ?
Thank you,
Ruben

Code: Select all

Resources referred by the project are missing.

C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Caphyon\Advanced Installer\Repository\dictionaries\ui_en.ail


Advanced Installer 12.2.1 build 64247
*** Stack Trace (x86) ***

[0x7c812aeb]  RaiseException()
[0x78ac872d]  CxxThrowException()
[0x017e108d]  std::_Init_locks::operator=()
[0x774cf354]  CoInitializeEx()
[0x774cd6cc]  IsValidInterface()
[0x774cd1ef]  CoTaskMemAlloc()
[0x774cd8b5]  IsValidInterface()
[0x01010da3]  -----
[0x78ab0350]  _set_flsgetvalue()
[0x01010f29]  -----
[0x00400000]  MODULE_BASE_ADDRESS
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optionally Browse for a Folder

Hi Ruben,

In the Dictionaries tab from the Translations tab, please delete the <AI_REPOSITORY>dictionaries\ui_en.ail entry.

Let me know if there is anything else I can help you with.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Re: Optionally Browse for a Folder

Thank you, Dan ! That works. For other readers, that's how it looks:
Snippetx1.jpg
Snippetx1.jpg (30.34 KiB) Viewed 4393 times
respectively:
The attachment Snippetx2.jpg is no longer available
Attachments
Snippetx2.jpg
Snippetx2.jpg (25.49 KiB) Viewed 4393 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optionally Browse for a Folder

You're always welcome Ruben,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”