Archive: Dropdown list does not work in Windows 2000


Dropdown list does not work in Windows 2000
Hi all,

If I compile the following very simple script, the compiled Test.exe would run in Windows XP fine. However, if I run the same Test.exe in Windows 2000, the dropdown list only shows User2, but not the other two. Am I missing something here or doing something wrong?

Test.nsi


!include "MUI.nsh"

OutFile "Test.exe"

Page custom UserListPage
!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

Function .onInit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "UserList.ini"
FunctionEnd

Section MainSection
SectionEnd

Function UserListPage
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "UserList.ini"
FunctionEnd


UserList.ini

[Settings]
NumFields=1

[Field 1]
Type=Droplist
ListItems=User1|User2|User3
Left=0
Right=157
Top=64
Bottom=74
State=User2

Use it like this:
Top=64
Bottom=108

copied from IO manual:
For combobox or droplist, the "bottom" value is not used in the same way.
In this case, the bottom value is the maximum size of the window when the pop-up list is being displayed. All other times, the combobox is automatically sized to be one element tall. If you have trouble where you can not see the combobox drop-down, then check the bottom value and ensure it is large enough. A rough guide for the height required is the number of items in the list multiplied by 8, plus 20.


Thanks a lot, that made the trick!