jmeyer@wennsoft.com
Posts: 4
Joined: Wed Sep 05, 2007 9:31 pm

Disabled Browse Button

hi
When a user clicks on any disabled product in the tree (or disables one) on the Product Selection Dialog, the Browse button dims out/disables. When click on any enabled item the browse button is enabled again. This results in confusion since they then need to click on a non disabled item to continue after they disable one (red X). Is there a way of stopping this action since the folder path does not change based on any variations of the selected products.
Versin 6.5.2 Enterprise

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Disabled Browse Button

Hi,
This results in confusion since they then need to click on a non disabled item to continue after they disable one (red X).
Perhaps the confusion would be greater if the user is able to set the installation path when selecting a feature which will not be installed (if the feature is not installed, why can you change the installation path?). However, in an Enterprise project you can change the behavior of the Browse button:
- in the "Dialogs" page select the "Browse" button on the "CustomizeDlg" dialog (under "SetupTypeDlg")
- in the "Published Events" tab remove the existing control event
- create two new control events which look like this:

Code: Select all

[_BrowseProperty]             APPDIR            1
SpawnDialog                   BrowseDlg         1
This way the Browse dialog will always be visible. Additionally, you can make the installation path visible even for a feature which will not be installed:
- select the "<The selection's path>" static text control
- in the "Subscribed Events" tab remove the existing events
- in the Properties pane set the "Text" field to:

Code: Select all

[APPDIR]
- select the "Location" static text control
- remove the event in the "Subscribed Events" tab

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmeyer@wennsoft.com
Posts: 4
Joined: Wed Sep 05, 2007 9:31 pm

Re: Disabled Browse Button

As for the comment, all features go to the same path.
I already made the label stay enabled all the time.
I tried to set the browse button condition to 1, but, the value keeps defaulting back to AI_INSTALL.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Disabled Browse Button

Hi,
I tried to set the browse button condition to 1, but, the value keeps defaulting back to AI_INSTALL.
I'm not sure why you are encountering this behavior. Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Disabled Browse Button

Hi,

Please note that "AI_INSTALL" is a mandatory condition for all first level dialogs in the "First Time Install" section. Since your dialog is on the first level of the dialogs sequence (it is not the child of another dialog), it automatically uses this condition.

You can use this condition because your dialog will be used only during the first installation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jmeyer@wennsoft.com
Posts: 4
Joined: Wed Sep 05, 2007 9:31 pm

Re: Disabled Browse Button

the aswer is
remove the "SelectionBrowse" Published control event which disables the button.

Return to “Common Problems”