liuyt1
Posts: 25
Joined: Sun Aug 02, 2015 10:18 pm

how to disable next button if APPDIR is empty

hi,

In folder dialog, how to disable next if APPDIR is empty?
I saw if user clean APPDIR, still can client next which does not make sense.

Thanks,
YT
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: how to disable next button if APPDIR is empty

Hi,

I assume you deleted the path from the FolderDlg field, right? So, you got an empty path as the installation path?

Please note that the property APPDIR was not actually changed. Its value will be the default one, e.g. C:\Program Files (x86)\Your Company\Your Application\.

You can check this by yourself, using the following test case:
1) set the folder path to an empty string
2) go in the next/previous dialog
3) return to the FolderDlg dialog

Notice that the installation path is filled to the default path.

The path of the installation is actually changed when the Browse... functionality is triggered.

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

Return to “Common Problems”