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,
Estimating required disk space
Estimating required disk space
- Attachments
-
- remaining_disk_space.png (34.06 KiB) Viewed 2792 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Estimating required disk space
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.
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
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
Who is online
Users browsing this forum: No registered users and 105 guests