Skip to content
⌘ NSIS Forum Archive

Calculate the size during installation

2 posts

manasi1128#

Calculate the size during installation

hi,

i want to calculate the size of files in the setup during runtime..I'm not able to calculate the total size of files.I suppose the files are stored in compressed foemat in the setup exe ...therefore while installing the setup i want t calculate the size.

thanx in advance....
Afrow UK#
This is not possible without either extracting the files first or by calculating the size before compression at compile time. Makensis already calculates the size of sections when it compresses the files. This information is shown on the Components page in case you missed it. Use SectionGetSize on your section(s).

Stu