Page 1 of 1
Filling a CheckListBox
Posted: Wed Sep 06, 2006 11:06 am
by tomd
I would like to use a CheckListBox as part of my installation. I would like the list in the box to be populated from a few registry key values. When I look at the options given in the Object Behavior dialog, I am given 2 options for Recieves Information "<none> or Components List."
Can I create a variable that is simaliar to the Components List, and could I use it in a CheckListBox.
Posted: Wed Sep 06, 2006 11:21 am
by MichaelNesmith
The update script populates a check-list-box with the list of available updates, and then queries the ones that have been selected; obtaining selection information. Studying that script and the pre-built update dialog with the check-list-box should get you going.
CheckListBox
Posted: Wed Sep 06, 2006 1:42 pm
by tomd
I am completely new to this arena, so sorry for the lack of what may seem to be common knowledge.
I would like to get at least one string from a registry key(s) and populate the string(s) in a check-list-box. When the user checks one or more of the check boxes, that will determine what I do.
Example:
[] 2000 <- 2000 is the string read in from the registry
[] 2004 <- 2004 is the string read in from the registry
[] 2005 <- 2005 is the string read in from the registry
[] 2006 <- 2006 is the string read in from the registry
Posted: Wed Sep 06, 2006 2:38 pm
by jimo
So:
Read Registry Key HKLM\\SOFTWARE\\My Company\\SomeKey\\SomeValue1 into TEMPSTRING
Set Variable CHECKLISTBOXSTRING to $TEMPSTRING$$NEWLINE$
Read Registry Key HKLM\\SOFTWARE\\My Company\\SomeKey\\SomeValue2 into TEMPSTRING
Set Variable CHECKLISTBOXSTRING to $CHECKLISTBOXSTRING$$TEMPSTRING$$NEWLINE$
Now set the Items property of the CheckListBox control to $CHECKLISTBOXSTRING$
THis is all very clear if you thoroughly review the Updates script which can be found in the Runtimes folder under the IA installation directory.
By default this would be:
C:\\Program Files\\InstallAware\\InstallAware 6\\runtimes