Voxel
1st December 2004 03:34 UTC
AddSize can't take a variable? e.g. $1
Why can't AddSize take a variable? Is it really designed to only take hard coded numbers?
Am I just an idiot?
Push 1000
Pop $1
AddSize $1
Results in NSIS compiler telling me the usage of AddSize is: AddSize size_in_kb!
Voxel
1st December 2004 03:52 UTC
Found the solution....
AddSize is a copmile time command, so it can't use variables which only have values on runtime. To change the size of a section on runtime grab the latest CVS version and use SectionSetSize and SectionGetSize.
kichik
2nd December 2004 18:21 UTC
Indeed. But you no longer need to use the latest CVS version for that. SectionSetSize is available since version 2.0.