Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Page custom mycustompage
- !include nsDialogs.nsh
- !include TextFunc.nsh
- Function mycustompage
- nsDialogs::Create 1018
- Pop $0
- ; I don't have a list of things so I generate one on the fly for this example:
- !tempfile MYLIST
- !appendfile "${MYLIST}" "Foo$\r"
- !appendfile "${MYLIST}" "Bar$\r$\n"
- !appendfile "${MYLIST}" "Baz$\n"
- File "/oname=$pluginsdir\thelist.txt" "${MYLIST}" ; include list in installer
- !delfile "${MYLIST}"
- ${NSD_CreateDropList} 10u 10u 50% 100% ""
- Pop $0
- FileOpen $1 "$pluginsdir\thelist.txt" r
- loop:
- FileRead $1 $2
- IfErrors endloop
- ${TrimNewLines} $2 $2
- StrCmp $2 "" loop ; skip empty line
- ${NSD_CB_AddString} $0 $2
- goto loop
- endloop:
- nsDialogs::Show
- FunctionEnd
Add Comment
Please, Sign In to add comment