|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Apr 2017
Posts: 2
|
NSIS 3 Page Directory Required Size
Hello @all,
I'm using NSIS 3.01 and my installer works fine except the required space. I've googled this topic and search also this forum here, but was not able to solve the problem. Let's go more into details:
As mentioned above, the search with google and inside this forum pops up some potential solutions:
As far as I understood the documentation, the filesize should be added automagically to the section by the usage of FILE. But I've found no way to get this information and to set it for the "Page directory" where the user is asked for the installation path. My last idea was to do first a complete install into a temporary directory, claim the size and then move it to the user selected destination. But then... I thought by myself that I've missed something. Can anyone please push me to right direction? The major scripts are attached. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,700
|
SectionGet/SetSize takes a section id define, not a variable! The documentation has a example.
You normally don't have to do anything to calculate the size, just put the File instructions in sections (not functions) and everything should be calculated automatically. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Apr 2017
Posts: 2
|
Now it works
Hello Anders,
thanks to your hints ![]() Regards ThirtySomething |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|