NSIS: Access values of combo box of custom page?

Posted by Xinus on Stack Overflow See other posts from Stack Overflow or by Xinus
Published on 2010-05-05T08:48:07Z Indexed on 2010/05/05 8:58 UTC
Read the original article Hit count: 628

Filed under:
|

I have added custom page to NSIS installer using ini files, here is a code

.
.
.

    ; Welcome page
    !insertmacro MUI_PAGE_WELCOME
    Page custom customPage "" ": custom page"
.
.
.
Function customPage
   GetTempFileName $R0
   File /oname=$R0 customPage.ini
   InstallOptions::dialog $R0
   Pop $R1
   StrCmp $R1 "cancel" done
   StrCmp $R1 "back" done
   StrCmp $R1 "success" done
   error: MessageBox MB_OK|MB_ICONSTOP "InstallOptions error:$\r$\n$R1"
   done:
FunctionEnd
.
.
.

Here is a customPage.ini file

; Ini file generated by the HM NIS Edit IO designer.
[Settings]
NumFields=2

[Field 1]
Type=Label
Text=Select Version:
Left=4
Right=53
Top=16
Bottom=26

[Field 2]
Type=Combobox
Text=Combobox
ListItems=
Left=53
Right=138
Top=14
Bottom=107

I want to set values of combobox dynamically using NSIS script, how can I access combobox in nsis?

© Stack Overflow or respective owner

Related posts about nsis

Related posts about custom-pages