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.
Filling a CheckListBox
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
CheckListBox
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
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
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
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
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Who is online
Users browsing this forum: No registered users and 45 guests