FolderDlg: NEW_DIALOG=FolderDlg? - Advanced Installer Community

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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

FolderDlg: NEW_DIALOG=FolderDlg?

Hello everyone.

I am trying to add a new event to the FolderDlg's Next button which makes it show the FolderDlg again. The drop down list of "Argument" (in New Control Event) does not display the FolderDlg, so I cannot select it.

Is this a technical limitation of Windows Installer, or "only" of Advanced Installer?

The use case is this: The user picks a directory and the installer decides whether it is valid upon pressing the Next button. If invalid the FolderDlg should be shown again.



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: FolderDlg: NEW_DIALOG=FolderDlg?

Hi Clemens,
Is this a technical limitation of Windows Installer, or "only" of Advanced Installer?
This is a Windows Installer limitation. The NewDialog control event can point only to another dialog.
The user picks a directory and the installer decides whether it is valid upon pressing the Next button. If invalid the FolderDlg should be shown again.
Please note that another approach would be to prevent the user from going to the next dialog and show a custom message. This is explained in the Make sure an edit box is not empty how-to from the User Guide.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: FolderDlg: NEW_DIALOG=FolderDlg?

Hello Cosmin,

thank you for the information.



With best regards

Clemens Anhuth

Return to “Common Problems”