How to add disk space indication? - Advanced Installer Community
yuwanglingdi
Posts: 2
Joined: Tue Dec 27, 2016 2:37 am

How to add disk space indication?

Installer Enterprise > Classic theme > Enhanced UI (only install)

For the following dialogs:
- FolderDlg

I'd like to have indications of the required disk space and the available disk space.

How can I do this?

-------
There was a reply below but I do not get it. My Advanced Installer is 13.5.
-------------------------------------------------------
The properties you are interested in are:

-- PrimaryVolumeSpaceRequired
-- PrimaryVolumeSpaceAvailable

To have these properties set correct you will need to set the following properties like this:
- go to "Custom Actions" page
- show "InstallUISequence" -> "Begin" standard action

- create a Property set with formatted custom action under it
- set "Property Name" field to:

Code: Select all
AiEarlyValidate
- set "Formatted Text" field to:

Code: Select all
1

- create a Property set with formatted custom action under it
- set "Property Name" field to:

Code: Select all
PRIMARYFOLDER
- set "Formatted Text" field to:

Code: Select all
APPDIR

The custom actions should be using this condition:

Code: Select all
NOT Installed

If you are not using Enhanced UI you only need to set the property "PRIMARYFOLDER", not and "AiEarlyValidate".
-------------------------------------------------------------------------------------------
Last edited by yuwanglingdi on Tue Dec 27, 2016 6:59 am, edited 1 time in total.
yuwanglingdi
Posts: 2
Joined: Tue Dec 27, 2016 2:37 am

Re: How to add disk space indication?

I have used the property:[PrimaryVolumeSpaceRemaining][PrimaryVolumeSpaceRequired],but when I run the installer after project builds, it shows that these two properties all are "0KB".
How can I get the right values?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to add disk space indication?

Hello and welcome to Advanced Installer forums,

The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.

Please let me know if you have any questions.

Best regards,
Dan
Attachments
Display volume installation info (e.g PrimaryVolumeSpaceRemaining).zip
(377 KiB) Downloaded 488 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nateh
Posts: 3
Joined: Sat Jun 24, 2023 5:13 am

Re: How to add disk space indication?

Dan, I've tested your example and unfortunately, it doesn't work. It only displays the text, but not the volume values next to its labels.
Apogee_Intelligent_Dashboard_0.0.1.19_2023-06-23_22-22-24.png
Apogee_Intelligent_Dashboard_0.0.1.19_2023-06-23_22-22-24.png (24.01 KiB) Viewed 5940 times
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How to add disk space indication?

Hello,

I have run the sample project my colleague Dan provided and everything worked as expected:
Screenshot_142.png
Screenshot_142.png (42.09 KiB) Viewed 5909 times

Please make sure that you have added the properties, like in the sample project:
Screenshot_143.png
Screenshot_143.png (49.67 KiB) Viewed 5909 times

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

Return to “Common Problems”