Customize Dlg Location Label visibility in Maintenance mode. - Advanced Installer Community

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!

benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Customize Dlg Location Label visibility in Maintenance mode.

Hi,

In maintenance mode, when you select an installed feature the location appears below, however the location label does not.

Since the location label itself subscribes to the "SelectionPathOn" event and set's it's visibility to true, why does this not show?

I guess this is a bug. I am using 6.2.

Thanks,
Ben
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Customize Dlg Location Label visibility in Maintenance mode.

Hi Ben,

This is not actually a bug, but rather the way Windows Installer works.

As it is mentioned in the Windows Installer documentation, the SelectionPathOn Control Event is never published during maintenance.

However, the SelectionPath Control Event, to which the "Location" text control (not the "LocationLabel" control) subscribes, is also published during maintenance.

What is even more intriguing is that both controls (as well as the "Browse" button) have a Control Condition that hides them in maintenance mode (when Installed evaluates to True). That is, the 2 Static Text controls and the "Browse" button should all be hidden in maintenance mode, but it seems that the "Location" control is actually visible (because it subscribes to the SelectionPath event).

To conclude, it seems that if both a Subscribed Event and a Control Condition alter the same attribute of a given control, the Subscribed Event will have precedence over the Control Condition, in that it will override the control's attribute value set by the Control Condition. I have not found this documented in the SDK, but from my testing this seems to be the case.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”