sonda
Posts: 101
Joined: Mon Apr 30, 2018 12:01 pm

Update space available when selected different drive

On the folder dialog, i have added [PrimaryVolumeSpaceAvailable] and it displays initial value but if i change the drive on browse I like the value to be updated with available space on drive D not sure on which action can i achieve this.

I have attached simple aip

Regards
Attachments
Your Application4.aip
(23.59 KiB) Downloaded 430 times
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Update space available when selected different drive

Hello,

In order to achieve this (in a better way I'd say), you could add the "Volume Cost List" control to your dialog.

This should display the available space on every disk, something like this:
VolumeCostList.png
VolumeCostList.png (13.09 KiB) Viewed 9277 times

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 101
Joined: Mon Apr 30, 2018 12:01 pm

Re: Update space available when selected different drive

Hi thanks for the answer we don't want to use another control we want to achieve this:
folder.png
folder.png (7.27 KiB) Viewed 8641 times
but without using another control, the problem is that when the folder is changed variables are not updated, and for now, I don't have any idea if that is possible without control and only using labels (default browse dialog) with [PrimaryVolumeSpaceRequired], [PrimaryVolumeSpaceRemaining],[PrimaryVolumeSpaceAvailable] and without going forward-backward on installer.

Regards
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: Update space available when selected different drive

Hello,

Unfortunately, I'm afraid there isn't really a feasible solution for your request.

Basically, what we would need to do here is use a "Refresh the current dialog" event (this is the reason why if you click "Next" and then "Back", the value is updated).

The only solution I can think of would be having a "Push button" control that refreshes the dialog.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”