Hello J.,
Honestly, I can not really think of a programmatic way of achieving this, other than simply comparing APPDIR with every path that is not compatible and prompting a messagebox to the user. For instance, a condition for the messagebox may look like this:
Code: Select all
(APPDIR >< ProgramFilesFolder) OR (APPDIR >< ProgramFilesFolder64)
The above condition would translate to:
if APPDIR contains ProgramFilesFolder or APPDIR contains ProgramFilesFolder 64
Beside prompting the messagebox, another thing that could be done (silently) would be to set the APPDIR property right after the user has set it using a
"Set property" as a
"Published Event" on the
"Next" button of the
"FolderDlg" dialog. However, in a normal scenario, you'd like to condition this
"Set property" event to only executes when needed and once again, the only way of doing so is the solution presented above.
Best regards,
Catalin