All I want to do is show two consecutive custom pages with each with a single label control that I have created.
; Allows for the creation of Dialog Box controls within "Create"d dialog boxes.
!include nsDialogs.nsh
; Include the Logic Library for high level macros
!include LogicLib.nsh
...
;-------------------------------------------------------------------
Page custom ChoosePasswordPgFunc
Function ChoosePasswordPgFunc
nsDialogs::Create RESOURCE_ID_OF_RECT_STRUCT
Pop $ChoosePwdDialog
${If} $ChoosePwdDialog == error
!insertmacro _LogWrite 'Error while creating the password dialog box!'
Abort
${EndIf}
${NSD_CreateLabel} 40 0u 90% 30u "A password is recommended if you wish to prevent some Hub users from accepting unsoliticed client application connection requests, edit the Hub's system map, or exit the Hub application."
Pop $ChoosePwdDialogLabel
${If} $ChoosePwdDialogLabel == error
!insertmacro _LogWrite 'Error while creating a label 1 for the password dialog box!'
Abort
${EndIf}
nsDialogs::Show
FunctionEnd
Page custom ChooseCentralPgFunc
Function ChooseCentralPgFunc
nsDialogs::Create RESOURCE_ID_OF_RECT_STRUCT
Pop $ChooseCentralDialog
${If} $ChooseCentralDialog == error
!insertmacro _LogWrite 'Error while creating the Central dialog box!'
Abort
${EndIf}
${NSD_CreateLabel} 40 0u 90% 30u "CENTRAL."
Pop $ChooseCentralDialogLabel
${If} $ChooseCentralDialogLabel == error
!insertmacro _LogWrite 'Error while creating a label 1 for the Central dialog box!'
Abort
${EndIf}
nsDialogs::Show
FunctionEnd
Instead, with the above code, the first page shows its label, then I press the "Next" button to go to the second custom page, but the second custom page's controls are not displayed.
All the other standard NSIS buttons above and below my controls are correctly displayed (the usual "Prev" & "Install" buttons at the bottom of the window, etc.).
This strange behavior goes away when I insert a standard page in between my two custom pages like this:
In this case my second custom ChooseCentralPgFunc page shows all of its controls perfectly.
Page custom ChoosePasswordPgFunc
...
Page license
Page custom ChooseCentralPgFunc
...
Obviously the "Page license" is resetting or reinitializing something within the nsDialogs library. I would like to know what I can do to make my second custom page show up without inserting any additional code.
I have searched exhaustively for the answer to my program already in this forum and elsewhere and I have not found any answers to this problem.
Any help would be greatly appreciated.
Thank you in advance!