Друзья, ситуация такая:
Код:
!include nsDialogs.nsh
!include LogicLib.nsh
!include zipdll.nsh
!include MUI2.nsh
!include NSISArray.nsh
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE English
Name "Формирование установочных файлов -"
OutFile testik.exe
XPStyle on
Var Dialog
Var Label1
Var Label2
Page custom Test0 Test0Leave
Page custom Test1 Test1Leave
Page custom Test2 Test2Leave
Page instfiles
Function Test0
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateLabel} 0 0 100% 12u "Тестирование №0"
Pop $Label1
${NSD_CreateLabel} 0 13u 100% 12u "Задаем количество менеджерских"
Pop $Label2
${NSD_CreateText} 0 25u 100% 13u "1"
Pop $R4
nsDialogs::Show
FunctionEnd
Function Test0Leave
${NSD_GetText} $R4 $R4
MessageBox MB_OK "R4=$R4" ;выдает R4=1
FunctionEnd
Function Test1
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
nsDialogs::Show
FunctionEnd
Function Test1Leave
${NSD_GetText} $R4 $R4
FunctionEnd
Function Test2
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
nsDialogs::Show
FunctionEnd
Function Test2Leave
${NSD_GetText} $R4 $R4
MessageBox MB_OK "R4=$R4" ;выдает R4=
FunctionEnd
Section
SectionEnd
Не знаю как сделать, чтобы переменная выдавала R4=1 в функции Test2Leave