nsdialogs DropList Problem when popping variable
Hello all,
i have come across a problem which i cannot explain since it works in another script, i have the following demo script
!include "MUI2.nsh"
Name TestSetup
OutFile TestSetup.exe
XPStyle on
Page custom GetInstallationType ;LeaveGetInstallationType
Var /GLobal Dialog
Section Test
SectionEnd
Function .onInit
InitPluginsDir
FunctionEnd
Function GetInstallationType
!insertmacro MUI_HEADER_TEXT "$(GetInstallationType_Header)" "$(GetInstallationType_SubHeader)"
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateGroupBox} 0 0 100% 100 GroupBox
Pop $0
${NSD_CreateLabel} 10 20 95% 30 Description
;Pop $0
${NSD_CreateDropList} 10 60 200 30
Var /Global GetInstallationType_DropListInstallType
Pop $GetInstallationType_DropListInstallType
${NSD_CB_AddString} $GetInstallationType_DropListInstallType one
${NSD_CB_AddString} $GetInstallationType_DropListInstallType two
${NSD_CB_AddString} $GetInstallationType_DropListInstallType three
${NSD_CB_SelectString} $GetInstallationType_DropListInstallType two
nsDialogs::Show
FunctionEnd
if you look closely i have remarked the Pop $0 after the line with the ${NSD_CreateLabel}.
Only then it will show the GroupBox if you enable the Pop command it will not.
This time its not a problem with Unicode (or not) since it works in neither
NSIS 2.42
NSIS 2.42 Unicode
NSIS 2.38 Unicode
NSIS 2.37
Any Ideas?
Thanks
Regards
Holger