We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

spearsp
Posts: 9
Joined: Thu Nov 14, 2013 2:28 pm

Get description for selected feature: Quick Selection Tree

I have an installation that has multiple features. However, I do not want to go through an extra page for the user to select a setup type before getting to the feature selection page. I have this working quite nicely using a quick selection tree, with one small drawback: When the user clicks on a feature in the tree (on the feature, and not on the checkbox), the feature becomes focused. At this point, I would like to display the description for the selected feature beneath the tree. Is it possible to do this?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Get description for selected feature: Quick Selection Tr

Hello,

In order to achieve that you can use the Customize Dialog (CustomizeDlg) which is part of the SetupTypeDlg dialog.

In order to add the SetupTypeDlg you can go in the Dialogs page and add it using the [ Add Dialog ] toolbar button. Then you can expand the SetupTypeDlg and then InstallMode=InstallModeCustom. Now you can select the CustomizeDlg and drag it above the SetypTypeDlg. After that, you can delete the SetupTypeDlg.

Please note that the description which will be displayed for each feature that you select is the one from the feature property - Feature Description field.

If there is anything I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
spearsp
Posts: 9
Joined: Thu Nov 14, 2013 2:28 pm

Re: Get description for selected feature: Quick Selection Tr

Thank you - that worked, after a fashion. I've been struggling to find the Customize dialog, and never thought of just dragging it from elsewhere.

After a fashion, because I have been using the Spring Lavender theme, which does not have the feature description included.

I tried adding a Static Text control and subscribing to the Selected Item Description event, as is done in the CustomizeDlg control in the other themes. This didn't work at all. Then I changed to the classic theme, copied the description text control from there, changed back to my Spring theme, and pasted the text control onto CustomizeDlg, and it worked, although it does not respect the Transparent property setting (background reverts to Gray as soon as the text is changed), and there does not appear to be any way to set the background color for the control.

I see that the control that I pasted has different properties to the one available in the toolbox, in spite of the fact that it appears to be of the same class (going by the Type property): It does not have a default value, where the toolbox control does. It also allows a blank property name, which the toolbox control does not. I then added one of each to a new dialog and saved, so that I could see the difference:

Code: Select all

    <ROW Dialog_="NewDialog" Control="InheritedControl" Type="Text" X="52" Y="65" Width="194" Height="30" Attributes="196611" Text="Control copied from Customise dialog" Order="600" TextLocId="Azure.Control.Text.CustomizeDlg#ItemDescription"/>
    <ROW Dialog_="NewDialog" Control="ToolboxControl" Type="Text" X="52" Y="115" Width="194" Height="11" Attributes="65539" Property="TEXT_1_PROP" Text="Control created from toolbox" Order="700"/>
It appears that the primary difference is in the TextLocId, which cannot be set from within the UI.

I have also found that the Spring theme sometimes just doesn't paint. When this happens, I click where I know the Next button should be, and it moves onto the next page, it does paint, albeit not completely. I have now abandoned the Spring theme and moved onto the Azure theme, which seems to be more stable. I am using Windows 8.0 (not by choice, and no amount of hate mail can really describe how disgusting it is) on a new HP i7 ProBook, if that helps.

Thanks,
Peter

Return to “Building Installers”