CaMat
Posts: 18
Joined: Wed Jun 22, 2022 11:48 am

Volume Cost List doesn't update after changing path by edit control

Hello,

I noticed, volume cost list does not udpate if I change path by edit control.
To reproduce this behavior you need create new installer project ot use existing with, for example, Modern theme. In SetupTypeDlg there is default usage of this list. After changing disk in path by edit, volume cost list will still display information about usage of previous disk. For example if in path is disk C and I change it by edit to disk D, volume cost list displays information about usage of disk C after losing focus on edit control. Is there a solution to this problem?
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Volume Cost List doesn't update after changing path by edit control

Hello,

I'm afraid this is the default behavior of the "VolumeCostList" Windows Installer control. It seems that the installer is not able to update the VolumeCostList control when the path is changed in the PathEdit control or by using the Browse dialog button.

In the VolumeCostList Control MSFT article, we can see the below information:
Note that the installer does not update the content of the VolumeCostControl when a user enters a different path into a PathEdit control, a Browse dialog box, DirectoryList control, or DirectoryCombo control because there is no property associated with the VolumeCostList control.
Because of this lack of association, the VolumeCostList control does not automatically update its content when the user changes the path using one of these other controls.

In other words, the VolumeCostList control is not connected to the other controls that allow a user to select the installation path, so it is not automatically updated when the user chooses a different path.

I'm sorry for the inconvenience.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CaMat
Posts: 18
Joined: Wed Jun 22, 2022 11:48 am

Re: Volume Cost List doesn't update after changing path by edit control

Hello,

I see, that is not problem with Advanced Installer but with Windows Installer control.
Thank you for detailed reply.
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Volume Cost List doesn't update after changing path by edit control

You're always welcome!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”