Archive: Hot to retrieve the (unpacked) size of packed folders/files?


Hot to retrieve the (unpacked) size of packed folders/files?
Hello world,

in my .onInit function, I want to set the memory requirements (SectionSetSize) according to the real size of the corresponding files and folders. For folders that are outside the installer.exe, I can get the total size with:

${GetSize} "My Folder" "/M=*.* /S=0K /G=1" $0 $1 $2
But what if the folder contents are packed within the installer.exe, e. g. like:
Section "My Section" Section1
SetOutPath $INSTDIR
SetOverwrite on
File /r "My Folder\*"
SectionEnd
At the time the installer is run on the client machine, the original "My Folder" will not be available. So how can I calculate its size from within the running installer (for use with SectionSetSize)?

You don't need to do it yourself when you compress files.

Stu


Just tried - you're right! Thanks!