thek
23rd August 2006 10:48 UTC
the Size 0.0kb problem...
Hello
I read through the Forum and I realized the problem of the wrong size exists because i put the FILE commands in functions...
But I still want to get the right size for the installer
I know I can use the AddSize command but this would be only an approximation.
is there a way to get the size of a file from the FILE command during compiletime?
hopefully somebody can help me
nobs
Comperio
23rd August 2006 14:38 UTC
You might need to check each file at runtime using a separatre EXE that would ouput a NSH file which is then included in the main script.
It sounds complicated, but really isn't that bad. See this article for instructions: http://nsis.sourceforge.net/Invoking...n_compile-time
thek
23rd August 2006 14:57 UTC
Thanks for the answer
but this still would be to much work because I must do this for a lot files, so I need a quite sophisticate script which automaticly scans for all "File" commandos in my installscript. I don't thing this reasonable in my project.
I made a simpel change, I replace my functions with macros!
it isn't really 100% perfekt because some files are copied 2 times but this is no problem in my project.