Components tree

Got a problem you cannot solve? Try here.
SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Components tree

Postby SITL » Wed Feb 08, 2017 2:00 am

Dear Francisco,

Thanks for your support,
I have completed all the major features.
I used to Install all the features without customization because i wanted to complete other features first.
Now i'm working on components selection.

My requirement is -
Suppose i have 4 items in the tree.
On selection, appropriate description and memory required should be displayed on the right side.
I'm using the default dialog "componentstree", So we already have a control "Description".
When user selects an item in the tree, how to set the text of the control Description?
And also controls like TotalRequiredSpace and RemainingSpace ?

Appreciate your help
SITL

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Components tree

Postby bokkie » Wed Feb 08, 2017 3:39 am

SITL, let me see if I understand what you have in mind.

You display the dialog where you select/deselect your components. If you have components A, B, C and you deselect all components the total required space might be 0? If you select components B and C you might want to see something like 19488 displayed in the total required space? Something like that?

For the remaining space do you want that to be a constant value, such as 154Gb regardless of what components you want to install? Or do you want the remaining space to change dynamically depending on the components you selected?
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Components tree

Postby SITL » Thu Feb 09, 2017 12:58 am

Thanks Bokkie,

1. Your last line -
We want the remaining space to change dynamically depending on the components you selected?
2.Actually we have Six components (A,B,C,D,E,F), by default all are selected.
Then lets us say, user has deselected B,C& E.
Later user decides to go with the default selection. So need to have one "Reset" button.
user just clicks on reset button to get back to default selection.

Appreciate your help.
Regards
SITL

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Components tree

Postby SITL » Wed Feb 15, 2017 4:35 am

Hi Bokkie,

Thanks,
Can you help me how to do this ?
1.Suppose we have Six components (A,B,C,D,E,F), by default all are selected.
Then lets us say, user selects only A,D & F.
Later user decides to go with the default selection. So we need to have one "Reset" button.
user just clicks on reset button to get back to default selection ( all the components are selected).

Regards
SITL

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Components tree

Postby SITL » Mon May 08, 2017 6:10 am

Dear Francesco,

Please see whether you can help me how to do this ?
Suppose we have Six components (A,B,C,D,E,F), by default all are selected.
Then lets us say, user selects only A,D & F.
Later user decides to go with the default selection. So we have one "Reset" button,
when the user clicks on reset button, all the components will be selected.
Please guide me on this.
(our previous installer has this feature, so it's there in my list) :)

Regards
SITL

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Components tree

Postby FrancescoT » Tue May 09, 2017 9:59 am

Dear SITL,

it may be not necessary to have a button for resetting default features selection. The user could return back to the "setuptype" dialog to restore back their selection.

If you want to handle this behavior with a dialog button, you will the need to write some custom script code in order to set the state of each component ("Set Component State" command). At such purpose, I suggest you to have a look at the "Basic Dialog Action sample". This demonstrates how to execute script code conditionally as result of a dialog button selection.
http://www.installaware.com/forum/viewtopic.php?f=2&t=6772&start=0

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 54 guests