Archive: space required 0.0KB???


space required 0.0KB???
Hi,
on directory page is a lable with caption space required.
But this lable always shows 0.0kb the free space lable is working fine.

Has someone an idea how to fix that problem?

greetings
michael


if you haven't any files in the installer to extract from then the value will be 0.0kb. if you add files to the installer (see the docs for help on doing it) then the value will show the size of the extracted files.

-daz


;-) files?!? why do i have to put files in the installer ?? :))

no ... the problem is an other:
if i execute the installer, the files would be extract, but during the installation 0.0kb is shown.


;) files?!? why do i have to put files in the installer ?? :D

no ... the problem is an other:
if i execute the installer, the files would be extract, but during the installation 0.0kb is shown.
greetings
michael


if there is nothing to extract from the installer then it will show 0.0kb. also if during the installation you decide not to install any files even if there are files to extract from the installer then it will also show 0.0kb.

think that's put better ;)

-daz


we do not understand each other.

1) there is no possibilety to select which files to install (no component page)

2) if i had run the setup, there are files which had been extracted!
but 0.0k had been shown on MUI_PAGE_INSTFILES during the setup


If you have not used the File command, NSIS doesn't know the size of your files. Use AddSize to specify your own size.


If you did use File, make sure you've used it in a section and not in a function. File only adds size to the section it's used in. If you have used File in a function, use AddSize as Joost mentioned or move the File command(s) to the section.


If put the File command inside a function inside a section, it will show the correct size?


Nope, only if the File command is inside the section.


Hi,
yes I`ve used it in a subfunction, called from a section.
Thank you for the tip :)

but...why can I only use it directly in the section?

greetings
michael


Because functions can be called from more than one section, more than one time and from callback functions too.