Estimating required disk space

Got a problem you cannot solve? Try here.
vojab
Posts: 1
Joined: Wed May 06, 2015 5:37 pm

Estimating required disk space

Postby vojab » Wed May 06, 2015 5:52 pm

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,
Attachments
remaining_disk_space.png
remaining_disk_space.png (34.06 KiB) Viewed 2791 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Estimating required disk space

Postby FrancescoT » Thu May 07, 2015 12:48 pm

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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 117 guests