Archive: own label in MUI_PAGE_DIRECTORY


own label in MUI_PAGE_DIRECTORY
Hi!
I want to use another label than the MUI_TEXT_DIRECTORY_TITLE and the MUI_TEXT_DIRECTORY_SUBTITLE in the macro MUI_PAGE_DIRECTORY. Is it generally possible to do that? If so, how can I do that? Sorry, if i should have read more of the archives, but it's kinda urgent.
Creating a new page with InstallOptions wouldn't solve my problem, because the label has to be on that directorypage.


Other questions:
Can I copy the original language file (*.nlf) and use them in combination with the "modern ui-language-file"?
Is it possible to use variables in the (not modern ui) language files (the *.nlf-files)? Like that (^NameDA)-thing?


Maybe setting MUI_PAGE_HEADER_TEXT and MUI_PAGE_HEADER_SUBTEXT before inserting a page macro help you.


Thank you for the answer, but that's not what i'm looking for. MUI_PAGE_HEADER_TEXT and MUI_PAGE_HEADER_SUBTEXT are already set. I want to see another label under the text, which is defined in the nlf-language file. That label i want to fill with a custom string.


Edit modern.exe with Resource Hacker to add a new label.

-Stu


Thank you. I hoped there is a easier way, but so i gonna start to edit the modern.exe. Is the dialog 105 the correct dialog to edit the directory-page?
I added the line:
CONTROL "", 1038, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 15, 69, 265, 47

Now i see another label in the dialog with "resource hacker", but what to do now. I gonna try to find out by reading archives/ searching with google. But if somebody got a quick answer or a usefull link, please post it.


i think it's similar to this definition/function:

!define MUI_PAGE_CUSTOMFUNCTION_SHOW "DirShowProc"
!insertmacro MUI_PAGE_DIRECTORY

Function "DirShowProc"
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1019
CreateFont $1 "Arial" 8 0
SendMessage $0 ${WM_SETFONT} $1 0
SetCtlColors $0 0x00BAB0A6 0x000000
FunctionEnd

somebody got a tip?


i managed to set the color of the label. now the only problem is to "paste" a string. it can't be that hard now, i hope.

that's my code:

Function "DirShowLbl"
FindWindow $0 "#32770" "" $HWNDPARENT
;MessageBox MB_ICONINFORMATION|MB_OK "found: $0"
GetDlgItem $0 $0 1138 ;1138 = ID of label
;MessageBox MB_ICONINFORMATION|MB_OK "found: $0"
SendMessage $0 ${WM_SETTEXT} 0 "STR: blabla" ; ???!!!
SetCtlColors $0 0x000000 0xFFFFFF
FunctionEnd

i have no experience with windows-messages, but obvisiously i need them now. HELP! ;)


i think i got it. wasn't that hard. forgot to include winmessages.nsh.


I have to customize the FINISHPAGE, too. Can i find that dialog in modern.exe? If so, which ID (the directorypage was 103)?

FindWindow $0 "#32770" "" $HWNDPARENT

Will that operation find the window, too? Other class?


Finish page is a custom InstallOptions page.
You can only modify if by writing to ioSpecial.ini before the page is shown.

-Stu


ok...that's what i wanted to know...thx