flizebogen
28th April 2004 07:31 UTC
Free disc Space
I have a problem. I build a lot of installers who are silent. I know that when using the directory page there is a check for free disc space.
There it displays the size of all chosen sections.
Is there any way to use this in silent mode? Sure i can use SectionGetSize but this is only for a named section.
I found a sample script which checks the free disc space of a named location but thats only useful if i know how much data will be installed on the target machine (inclusing Size of Addsize if used).
As the info seems to be in NSIS there should be a way to use it.
Joost Verburg
29th April 2004 16:30 UTC
What's wrong with SectionGetSize?
flizebogen
29th April 2004 17:33 UTC
It doesn't work very well of you deal with Insttypes.
Joost Verburg
29th April 2004 17:40 UTC
Why do you need installation types for a silent installer?
flizebogen
29th April 2004 19:27 UTC
Sometimes, yes. It's good for silent updates based on the previous settings. But this doesn't answers my question if the info used on the directory page for needed space can be accessed within the installer
Joost Verburg
30th April 2004 12:54 UTC
You can combine SectionGetInstTypes with SectionGetSize.