Archive: "Space required" on the MUI_PAGE_DIRECTORY shows 0.0kb


"Space required" on the MUI_PAGE_DIRECTORY shows 0.0kb
Hi all,

I just tested my installer and I noticed that the field "Space required" on the MUI_PAGE_DIRECTORY page is shown as being 0.0kb. Any clue why does this happen? In the package I have just "normal" files: exe, dll, png, etc, but nothing like a zip or so.

Thx,
Viv


OK, I searched the forum for "space required" and couldn't find the answer to my problem, this is why I wrote the above entry. Finally I searched the forum for 0.0kb and found the answer: the "File" command has to be in the section dirrectly. If it's a function, like in my case, the size won't be added this is why I end up with 0.0kb. As I need to have the File commands in a function I used AddSize and a number that roughly suggested the space I need.

Thx,
Viv


Don't quote me on this, but I believe this info is based on the sizes set in each section.

Section sizes can be set using the AddSize and SectionSetSize command. (See NSIS help for proper usage.)