DiskSpace calculate with Check flags

44 views
Skip to first unread message

Gouster 4

unread,
May 14, 2025, 1:46:43 PM5/14/25
to innosetup
Hello. I created some custom pages with selections of software variants.
And i used Check flags on files to select which variant of software is installed.

But DiskSpace isnt being calculated correctly, with Check flags.
It seems to be calculated at setpu start and not updated anymore.
It would be awesome to have it recalculated at exact time its displayed, or by calling some procedure. I didnt noticed any procedure like this.

Thank you.

Gavin Lambert

unread,
May 14, 2025, 11:05:36 PM5/14/25
to innosetup
On Thursday, May 15, 2025 at 5:46:43 AM UTC+12 Gouster 4 wrote:
But DiskSpace isnt being calculated correctly, with Check flags.
It seems to be calculated at setpu start and not updated anymore.
It would be awesome to have it recalculated at exact time its displayed, or by calling some procedure. I didnt noticed any procedure like this.

The disk space requirement is shown as "at least X space required".  Because the result of Check functions can change at any time (including after this wizard page is shown), Inno errs on the side of caution and omits any files with Check conditions entirely from the calculation (i.e. it shows the minimum disk space requirement).

You can work around this by conditioning your [Files] on Components: instead of Check:, and conditioning your [Components] on the Check: instead.  This will call the Check functions only once at startup, and since their states are now known, the disk space will be shown as expected.

Of course, this requires that your actual conditions be known in advance, without requiring any wizard input. 
Reply all
Reply to author
Forward
0 new messages