Archive: display real size of ZiP/7Z contents


display real size of ZiP/7Z contents
is there any way to display the "real" size of files, that are packed using zip or 7-zip, inside the installer and that are delivered inside the NSiS package?
Doesn't matter if i hardcode it as long as anyone maybe willing to tell me how. But an plugin that meassures the size at runtime or calculates it at compile time would be my favorite solution ofc.

Thanks in advance.


Found a solution.
Hardcoded and working using SectionSetSize.
Took me a while to find the right words for what i was looking for, so my search finally pointed in the right direction. :/
But if some knows a method that calculates the file size inside the archive(s) during compiling or runtime automaticly, let me know please.


Using nsUnzip:

Name "Test"
OutFile "Test.exe"

Section
StrCpy $R0 0
GetFunctionAddress $0 VerboseCallback
nsUnzip::Extract "1.zip" /callV=$0 /END
Pop $0
MessageBox MB_OK "Uncompressed size: $R0$\nError: $0"
SectionEnd

Function VerboseCallback
Pop $0 ;File name
Pop $1 ;Uncompressed size
Pop $2 ;Compressed size
Pop $3 ;CRC: ff00ff00
Pop $4 ;Compress ratio
Pop $5 ;File date: "dd.MM.yy"
Pop $6 ;File time: "hh:mm"
Pop $7 ;Method: "Stored", "Shrunk", "Reduce1", "Reduce2", "Reduce3", "Reduce4", "Implode", "Token", "Defl:#", "Def64#", "ImplDCL", "PKres11", "BZip2", "Unk:###"
Pop $8 ;Encrypted: "E" or not " "

IntOp $R0 $R0 + $1
FunctionEnd

Thanks Mr. instructor, Sir.

All i need to figure out now, is how to hand these values over to NSiS before the user reaches the components dialog, so the install size will be automaticly calculated with the uncompressed size only.