Page 1 of 1

Estimating required disk space

Posted: Wed May 06, 2015 5:52 pm
by vojab
Hi everyone,

I'm using InstallAware 18 (Build 1.29.14) Developer edition.
I have installation setup which extracts contents from the 7z archive to the target directory.
7z archive is distributed separately -it is not part of the InstallAware project.

I'm wondering is there any way to estimate required disk space based on the uncompressed 7z archive size ?
Currently it shows incorrect required disk space during installation (see screenshot attached).

I already spend a lot of time trying to figure this out, and I browsed this forum, but didn't found a solution.
Thing that crossed my mind was reading file size using call DLL method, and than manually setting component space,
but that will show compressed file size.

Thank you in advance,

Re: Estimating required disk space

Posted: Thu May 07, 2015 12:48 pm
by FrancescoT
Dear Vojab,

Unfortunately it's not available a method that can be used at setup Runtime to get the un-compressed size of a 7zip archive.

the only option that you may try, it's to verify if the "7Zip library SDK" implements a Function able to return the un-compressed size of a given compressed archive. Honestly, I don't recall if it exists.

Of course with the above approach there is some work to do (if applicable).
You have to develop a custom DLL that implements the internal calls to "7Zip library" and to export a method that can be called with the "Call DLL function" from your script.

Hope this helps you.