MUI_PAGE_DIRECTORY, dynamicaly update the 'Destination Folder' text box
Is there a way to update the value of the 'Destination Folder' in the MUI_PAGE_DIRECTORY dialog when using MUI_PAGE_CUSTOMFUNCTION_LEAVE to validate $INSTDIR
If the folder exists I want to change it to a suggested name, doing a StrCpy $INSTIDR "blaaaa" in the validate function did not work.
Any ideas?
<snip>
; Directory page
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE dir_leave
!insertmacro MUI_PAGE_DIRECTORY
Function dir_leave
IfFileExists "$INSTDIR\*.*" folderExists
goto done
folderexists:
StrCpy $INSTDIR "$INSTDIR\[suggested_name]"
abort
done:
Functionend