Disable Next button in CustomizeDlg when no features selected - Advanced Installer Community
iske
Posts: 11
Joined: Tue May 03, 2016 3:07 pm

Disable Next button in CustomizeDlg when no features selected

Hey,
I've noticed another bug: The Next button in CustomizeDlg is still enabled, even when no features in the selection tree are selected.

I keep the default event under "Subscribed Events", but when I deselect all features, the next button is still enabled.
Image

I also noticed this problem on a clean demo project (see attachment).

Greetings, André
Attachments
Playground.aip
(17.63 KiB) Downloaded 352 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Disable Next button in CustomizeDlg when no features selected

Hello,

First of all I want to apologize for the misleading label (i.e. "Update control when no tree item is selected") we use for this subscribed event. This subscribed event is the "SelectionNoItems" event available in Windows Installer and, actually is triggered by a SelectionTree control only when the selection has no nodes. Thus the "Enabled" attribute of the [Next] button will be set to false when the selection tree control has no nodes.

To test how this works, you can go to "Organization" page and for each one of your product features set, from "Feature Properties" right pane, the "Feature Tree" option to "Not Displayed". Then just build and run the setup. When the selection tree has no feature nodes on "CustomizeDlg" dialog the [Next] button should be disabled.

We will update the label for this subscribed event in a future version of our application. Thank you for bringing this to our attention. We will update this thread as soon as the label is updated to a meaningful description.

In what regards what you are trying to achieve (disable [Next] button) when no feature was selected for installation in the selected tree control, I'm afraid I'm not aware of any solution for this requirement. Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”