|
|
#1 |
|
Junior Member
Join Date: Oct 2006
Posts: 2
|
Load a droplist
Hello.
Is there a way to load a "DropList" from a variable? I need to load the list from a registry key in the following format : "element1|element2|element3|...|elementN" I think that is the right format for the "listitems" property of the control. I'm writing a patch that reads that value from the registry, which was written by the installer. I know how to work with the registry. The only thing I don't know is how to send the content of the var to the "DropList". I searched the forums, but didn't find anything. Help would be appreciated. Thanks. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
WriteINIStr or MUI_INSTALLOPTIONS_WRITE before displaying the page.
-Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2006
Posts: 2
|
Thanks. I've tried both options:
PHP Code:
For what I've seen, the function just writes an ini file in "C:\windows\temp" directory... But what i need is to load the DropList on runtime from a registry key. Is there any way to do that? |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
With MUI_INSTALLOPTIONS_DISPLAY, you're displaying EmpSel, however you modify EmpSel.ini with MUI_INSTALLOPTIONS_WRITE.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|