change directorypage with installoptions?
Hi!
Hope i don't get onto your nerves, but i got another question on installoptions.
I would like to change the text of the label in the directorypage on runtime, depending on a "bool"-variable. If the variable is true, i want to change the whole text of that label. If it is false, the label should be filled with the text from the (nlf-)language-file.
I did this for the welcomepage with installoptions, but for the directorypage it doesn't seem to be so easy.
!define MUI_PAGE_CUSTOMFUNCTION_PRE "DirectoryPagePre"
!insertmacro MUI_PAGE_DIRECTORY
...
Function DirectoryPagePre
StrCmp $BoolInstalled "true" Change Nothing
Change:
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Text" "Test"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 2" "Text" "Test"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Text" "Test"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "Test"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 5" "Text" "Test"
Nothing:
FunctionEnd
Can't the directorypage get it's settings from ioSpecial.ini?