Archive: Mui_page_directory


Mui_page_directory
Is it possible to change the $(^Name) in a second directory page without changing the whole text?


You can set the name with a variable, initialize it with the main name .onInit and then in the pre function of the second page change that variable. The only downfall is that the caption of message boxes in .onInit will not include a name.

For example:

Var name
Name $name

Function .onInit
StrCpy $name "first name"
MessageBox MB_OK test
FunctionEnd

Page directory leave
Page directory pre "" leave
Page instfiles

Function pre
StrCpy $name "second name"
FunctionEnd

Function leave
StrCpy $name "first name"
FunctionEnd

thanks