How the installer validates the Drive space requirements i.e., Total space on drive, Available space and Remaining free space in the folder dialog.
I searched about this on forums. But, I can't find the relevant information.
The drive space requirements validation are done by Windows Installer through some standard actions which stores their values in the following properties:
I used the Volume select combo instead of default path edit & browse button in the Install Dialog. The problem with the volume select combo is when I select the different drive in it, the drive spaces are not changed according to my drive selection. If I proceed further and then come back to install dialog then only the values are updated. So, what can I do to change these values immediately after my drive selection in the volume combo?
I'm afraid I don't fully understand what you try to achieve. Can you please send us a screenshot with the dialog where you want to display the drive spaces and its configuration?
I'm attaching the screenshots here. In that APPDIR is C drive.It displays the space details of the C drive accordingly. When I select the D drive, the space values of D drive are not updated which is shown in the Dialog1.png. After coming out from that dialog only, these values are updated. So, how can I get those details instantly as per my drive selection other than the APPDIR.
I'm afraid that all that a combobox can do, is to set the selected drive to the APPDIR property, but it does not refresh the values from the other properties. Also, a combobox control does not support published events, so I'm afraid that the space requirements values cannot be refreshed when the drive is changed in that combobox.
I'm afraid that it cannot be refreshed automatically. You can only add a push button (i.e. Refresh) and add a "Verify and set the selected folder path" event on that path that sets the APPDIR property (as it is on the "Next" button of that dialog).
FOLLOW US
Get the latest news in Application Packaging