It means, that messagebox never appears. But the buttons aren't active, so it's imposible to press them. So how to leave the function code?
Well, I got this:
[quote]
Section "DB paruošimas" Server_Recreate
; Call here!
Call SettingsPageDB
; this MessageBox never appears
MessageBox MB_OK "SettingsPageDB done"
SetOutPath $INSTDIR
!insertmacro MUI_INSTALLOPTIONS_READ $DBSERVER_NAME "ServerSettingsPageDB.ini" "Field 3" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $DATABASE_NAME "ServerSettingsPageDB.ini" "Field 5" "State"
SetOutPath "$TEMP\EMC"
File ..\EMC.Setup\bin\C5.dll
File ..\EMC.Setup\bin\Castle.ActiveRecord.dll
File ..\EMC.Setup\bin\Castle.Components.Validator.dll
....................
[quote]
And the function:
Function SettingsPageDBAnd the ServerSettingsPageDB.ini:
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ServerSettingsPageDB.ini"
FunctionEnd
[Settings]Also tried this:
NumFields=5
[Field 1]
Type=groupBox
Text=Nurodykite įdiegimo parametrus
Left=0
Right=-1
Top=5
Bottom=182
[Field 2]
Type=label
Text=Duomenų bazės serverio vardas
Left=10
Right=-10
Top=20
Bottom=30
[Field 3]
Type=text
Left=10
Right=-10
Top=30
Bottom=42
MinLen=1
ValidateText=Nurodykite duomenų bazės serverio vardą
[Field 4]
Type=label
Text=Duomenų bazė
Left=10
Right=-10
Top=50
Bottom=60
[Field 5]
Type=text
Left=10
Right=-10
Top=60
Bottom=72
MinLen=1
ValidateText=Nurodykite duomenų bazės pavadinimą
Function FuncSettingsPageDBIn both ways the result is the same. I can't click any buttons on the window, but content of the window is what i want it to be.
${If} ${SectionIsSelected} ${Server_Recreate}
MessageBox MB_OK "Server_Recreate is selected"
InstallOptions::dialog "ServerSettingsPageDB.ini"
${EndUnless}
MessageBox MB_OK "Serve_Recreate isn't selected"
FunctionEnd
Here is the picture:

So, how to make button "next" clickable? 🙂