Since there is no explanation on how to use the various controls in the dialog editor I would like to post the following question:
I am declaring various logical variables (True or False) in my setup script which I would like to use as values to determine the state of the check boxes in a CheckListBox control in one of the user dialogs. I have not found a solution yet on how to accomplish that nor have I found a way of passing the state (checked/unchecked) of the checkboxes in the CheckListBox contol back to the setup script.
Does anyone have a clue on how to get something like that to work?
Passing script variables to CheckListBox control and back
-
- Posts: 46
- Joined: Tue Aug 22, 2006 9:16 am
- Location: NorthEast, USA
- Contact:
I just figured this out myself. Just double click on any control in the dialog and click on one of the tabs at the top. One of the tabs lets you bind the property (true/false for checkbox) to a property in the script.
I found this information in the help file under Reference | Dialog Editor | Passing Variables. I thought this section was actually very nicely documented.
The one part that confuses me is that I needed to define any variables that I wanted to use, in my script. This is fine and it makes sense. What confuses me is that I cannot find any of the definitions of the variables that are used by default. Are these InstallAware variables hidden from our view? I have searched though the code view and don't see them.
I found this information in the help file under Reference | Dialog Editor | Passing Variables. I thought this section was actually very nicely documented.
The one part that confuses me is that I needed to define any variables that I wanted to use, in my script. This is fine and it makes sense. What confuses me is that I cannot find any of the definitions of the variables that are used by default. Are these InstallAware variables hidden from our view? I have searched though the code view and don't see them.
Thanks for your reply. I forgot to mention that I am still using version 5.2 and there is only a very small section in the documentation about passing variable values in that version.
I figured out passing variable values for simple controls (i.e. checkboxes) as well. This actually works fine. However I am having a hard time associating multiple variable values to the various line items of a CheckListBox control.
I would also be curious for an answer to your question since knowing on how to adress the InstallAware variables would certainly help to exploit this tool much better
I figured out passing variable values for simple controls (i.e. checkboxes) as well. This actually works fine. However I am having a hard time associating multiple variable values to the various line items of a CheckListBox control.
I would also be curious for an answer to your question since knowing on how to adress the InstallAware variables would certainly help to exploit this tool much better

-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Sean - I'm not sure which variables you were looking for, and couldn't find. The list of pre-defined variables and pre-defined compiler variables is well documented in the help files (under topics with the same names). It lists each variable, how it is used, and its default value.
Ganimed - Unfortunately, this control was rather limited in the 5.x line. In the 6.x line it is possible to obtain individual state information for each line of the checkboxlist control. The update scripts used in 6.x for web update functionality make heavy use of this enhancements, so you'd find plenty of code examples in there.
Ganimed - Unfortunately, this control was rather limited in the 5.x line. In the 6.x line it is possible to obtain individual state information for each line of the checkboxlist control. The update scripts used in 6.x for web update functionality make heavy use of this enhancements, so you'd find plenty of code examples in there.
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/
Who is online
Users browsing this forum: No registered users and 92 guests