Archive: Problem with MUI_INNERTEXT_DIRECTORY_TOP


Problem with MUI_INNERTEXT_DIRECTORY_TOP
  Hi,

I've got a problem with MUI_INNERTEXT_DIRECTORY_TOP. Here is my code (it is a test code) :


...

!
define MUI_TEXT_DIRECTORY_TITLE $7
>!define MUI_TEXT_DIRECTORY_SUBTITLE $8
>!define MUI_INNERTEXT_DIRECTORY_TOP $8
>!define MUI_INNERTEXT_DIRECTORY_DESTINATION $9
>!define MUI_CUSTOMFUNCTION_DIRECTORY_PRE InstDirPre
>...
Function InstDirPre
StrCpy$7 "Directory Title"
StrCpy $8 "Directory subtitle"
StrCpy $9 "Innertext Directory"
>FunctionEnd
>
It works fine for MUI_TEXT_DIRECTORY_TITLE, MUI_TEXT_DIRECTORY_SUBTITLE and MUI_INNERTEXT_DIRECTORY_DESTINATION. But for MUI_INNERTEXT_DIRECTORY_TOP, it displays "$8" :eek:

I tried to change the string of MUI_INNERTEXT_DIRECTORY_TOP with that:

InstDirPre

... (the lines above)
FindWindow $R0 "#32770" "" $HWNDPARENT
GetDlgItem $R0 $R0 1006
SendMessage $R0${WM_SETTEXT} 0 "STR:test"
>FunctionEnd
>
And it didn't worked. Then I tried with that (I was sure it wouldn't work, but why not? :D):

InstDirPre

...
GetDlgItem $R0 $HWNDPARENT 1006
SendMessage $R0${WM_SETTEXT} 0 "STR:test"
>FunctionEnd
>
And of course, it didn't work...

In fact, I need to change the text of MUI_INNERTEXT_DIRECTORY_TOP like that because I got 2 directory pages, and I would like to show 2 different texts in those pages.

Please, help!!!
Thanx ;)

Oups, I forgot to say that I'm using NSIS 2.0b4 CVS (from the 13th june 2003)


MUI_INNERTEXT_DIRECTORY_TOP uses DirText and is a compile-time setting. You cannot change it on run-time.

Use the code above, but put in in the show function instead of the pre function.


Works fine now. Thanks a lot!
Joost Verburg, what would people do without you ?! :D