stasokhvat
Posts: 4
Joined: Fri Mar 31, 2023 8:53 am

Validating whether the app path selected in FolderDlg meets certain conditions

Hello,

We are using the Standard version of Advanced Installer.

We need to make sure that the installation folder selected in FolderDlg is under the current user's profile folder (UserProfileFolder variable).
FolderDlg has validation conditions but it seems that we cannot use variables in "Display an error if specific file or subfolder does not exist in the installation path".
How can we achieve this in the Standard version? Can you point us in the right direction, please?

Best regards,
Stanislav Okhvat
CotranslatorAI
https://cotranslatorai.com
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Validating whether the app path selected in FolderDlg meets certain conditions

Hello Stanislav,

A way to achieve what you need would be through a Custom Action.

For instance, you can have a script that validates the path and schedule this script for execution on the "Next" button of your dialog.

However, please note that this would require the "Dialog Editor" feature, which is available starting with the Enterprise suite.

Hope this helps!

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

Return to “Common Problems”