VERIFYONLEAVE help
Hi,
I am working with the ModernUI Directory page and I am trying to use the MUI_DIRECTORYPAGE_VERIFYONLEAVE setting. I feel like I am completely missing something, because it seems so simple, yet I can't get it to work. I haven't found much documentation on this functionality. Here is some of the code:
!define MUI_PAGE_CUSTOMFUNCTION_PRE DirectoryPre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW DirectoryShow
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DirectoryLeave
!define MUI_DIRECTORYPAGE_TEXT_TOP "(SOME TEXT HERE)"
!define MUI_DIRECTORYPAGE_VERIFYONLEAVE
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
...
Function DirectoryLeave
GetInstDirError $R0
MessageBox MB_OK $R0
...
$R0 always displays as '0', no matter what file path I type in. Maybe I am mis-understanding how this function works?
Thanks in advance for your help,
-Mike